diff options
author | Pankaj <pankaj.s01@samsung.com> | 2015-10-12 07:18:36 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2015-10-12 07:19:17 +0200 |
commit | ee1d48020b24164b5547de2affd0f38dafab8949 (patch) | |
tree | 5d8fa15e2a7676ea686fe251d474acaf87fdfc16 | |
parent | 3a005e75a4e1b63db8e19ea0e73479588ab345a6 (diff) |
p11-kit: Fix expression 'call_id < 0' is always false
https://bugs.freedesktop.org/show_bug.cgi?id=92434
-rw-r--r-- | p11-kit/rpc-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/rpc-message.c b/p11-kit/rpc-message.c index 30c331e..b5ac528 100644 --- a/p11-kit/rpc-message.c +++ b/p11-kit/rpc-message.c @@ -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; } |