]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Fixed misleading condition expression.
authorKarel Slany <karel.slany@nic.cz>
Wed, 13 Jul 2016 08:36:50 +0000 (10:36 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 11 Aug 2016 12:06:45 +0000 (14:06 +0200)
lib/cookies/helper.c

index b5882adf69bec5fe71ac79092e39c016cd084eff..5e070404972870930554046aa28feec5be1df539 100644 (file)
@@ -170,7 +170,7 @@ int kr_answer_write_cookie(const struct knot_sc_private *srvr_data,
                return kr_error(EINVAL);
        }
 
-       if (!cc || !cc_len || !nonce) {
+       if (!cc || cc_len == 0 || !nonce) {
                return kr_error(EINVAL);
        }