]> granicus.if.org Git - p11-kit/commitdiff
p11-kit: Fix expression 'call_id < 0' is always false
authorPankaj <pankaj.s01@samsung.com>
Mon, 12 Oct 2015 05:18:36 +0000 (07:18 +0200)
committerStef Walter <stefw@redhat.com>
Mon, 12 Oct 2015 05:19:17 +0000 (07:19 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=92434

p11-kit/rpc-message.c

index 30c331e4ddbfffa9252d7d8bfe4cd78d888937da..b5ac52888da320adcfe02f0df68fdce99ec61fc7 100644 (file)
@@ -171,7 +171,7 @@ p11_rpc_message_parse (p11_rpc_message *msg,
        msg->signature = msg->sigverify = NULL;
 
        /* The call id and signature */
-       if (call_id < 0 || call_id >= P11_RPC_CALL_MAX) {
+       if (call_id >= P11_RPC_CALL_MAX) {
                p11_message ("invalid message: bad call id: %d", call_id);
                return false;
        }