summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p11-kit/rpc-message.c2
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;
}