X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_callback.c;h=d1c042429b4d5fd4569a98a649f0ede6f2ac957f;hb=69d1480282790f15a2e200444c619c539b0fe078;hp=5e36ddf6cfc04d57dbfd248535758a54e0718ab1;hpb=c9be02d1b2212b6f82d460f9a57a759ffb79bf7c;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached_callback.c b/libmemcached/memcached_callback.c index 5e36ddf6..d1c04242 100644 --- a/libmemcached/memcached_callback.c +++ b/libmemcached/memcached_callback.c @@ -21,7 +21,7 @@ memcached_return memcached_callback_set(memcached_st *ptr, { size_t key_length= strlen(key); - if ((ptr->flags & MEM_VERIFY_KEY) && (memcachd_key_test((char **)&key, &key_length, 1) == MEMCACHED_BAD_KEY_PROVIDED)) + if (memcachd_key_test((char **)&key, &key_length, 1) == MEMCACHED_BAD_KEY_PROVIDED) { return MEMCACHED_BAD_KEY_PROVIDED; }