summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch')
-rw-r--r--meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch b/meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch
new file mode 100644
index 000000000..ed86ffae4
--- /dev/null
+++ b/meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch
@@ -0,0 +1,13 @@
1Index: memcached-1.4.33/items.c
2===================================================================
3--- memcached-1.4.33.orig/items.c
4+++ memcached-1.4.33/items.c
5@@ -148,7 +148,7 @@ item *do_item_alloc(char *key, const siz
6 uint8_t nsuffix;
7 item *it = NULL;
8 char suffix[40];
9- if (nbytes < 2 || nkey < 0)
10+ if (nbytes < 2)
11 return 0;
12
13 size_t ntotal = item_make_header(nkey + 1, flags, nbytes, suffix, &nsuffix);