Commit 00106a2e authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý

Fixed misleading condition expression.

parent 4d206efb
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment