From ee1d48020b24164b5547de2affd0f38dafab8949 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Mon, 12 Oct 2015 07:18:36 +0200 Subject: p11-kit: Fix expression 'call_id < 0' is always false https://bugs.freedesktop.org/show_bug.cgi?id=92434 --- p11-kit/rpc-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3