aboutsummaryrefslogtreecommitdiffstats
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 0000000000..ed86ffae4d
--- /dev/null
+++ b/meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch
@@ -0,0 +1,13 @@
+Index: memcached-1.4.33/items.c
+===================================================================
+--- memcached-1.4.33.orig/items.c
++++ memcached-1.4.33/items.c
+@@ -148,7 +148,7 @@ item *do_item_alloc(char *key, const siz
+ uint8_t nsuffix;
+ item *it = NULL;
+ char suffix[40];
+- if (nbytes < 2 || nkey < 0)
++ if (nbytes < 2)
+ return 0;
+
+ size_t ntotal = item_make_header(nkey + 1, flags, nbytes, suffix, &nsuffix);