diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-05-23 11:57:48 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2017-05-24 11:27:28 +0200 |
commit | 9e4ea3ff80b736bddbca834eef7e7f61f4b15c23 (patch) | |
tree | d09243dbae0b74d80a165c9af5b90611e0b22790 /p11-kit | |
parent | 41b07cdf4210b299dc6c92352475c7c095f6f915 (diff) |
rpc: Fix typo in encoding CK_DATE value
Diffstat (limited to 'p11-kit')
-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 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; } |