From 9e4ea3ff80b736bddbca834eef7e7f61f4b15c23 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 23 May 2017 11:57:48 +0200 Subject: rpc: Fix typo in encoding CK_DATE value --- 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 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; } -- cgit v1.1