From: Daiki Ueno Date: Tue, 23 May 2017 09:57:48 +0000 (+0200) Subject: rpc: Fix typo in encoding CK_DATE value X-Git-Tag: 0.23.6~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e4ea3ff80b736bddbca834eef7e7f61f4b15c23;p=p11-kit rpc: Fix typo in encoding CK_DATE value --- diff --git a/p11-kit/rpc-message.c b/p11-kit/rpc-message.c index 54fc343..ae6af2f 100644 --- a/p11-kit/rpc-message.c +++ b/p11-kit/rpc-message.c @@ -980,7 +980,7 @@ p11_rpc_buffer_add_date_value (p11_buffer *buffer, unsigned char array[8]; /* Check if value can be converted to CK_DATE. */ - if (value_length > sizeof (CK_DATE)) { + if (value_length != sizeof (CK_DATE)) { p11_buffer_fail (buffer); return; }