From 4ffcd2f9c3bb2b42d7bd7c683ecf3f93d6f8c7dc Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Fri, 25 Apr 2014 11:44:12 +0200 Subject: [PATCH] Typo in PKCS#11 module --- ChangeLog | 3 ++- library/pkcs11.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a77b3db4..bc21c9b4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,7 +8,8 @@ Changes Bugfix * Only iterate over actual certificates in ssl_write_certificate_request() (found by Matthew Page) - * Typo in platform.c (found by Daniel Phillips) + * Typos in platform.c and pkcs11.c (found by Daniel Phillips and Steffan + Karger) = PolarSSL 1.3.6 released on 2014-04-11 diff --git a/library/pkcs11.c b/library/pkcs11.c index 054fdb783..3dacaf578 100644 --- a/library/pkcs11.c +++ b/library/pkcs11.c @@ -189,7 +189,7 @@ int pkcs11_sign( pkcs11_context *ctx, } sig_len = ctx->len; - if ( hashlen > ctx_len || asn_len > sig_len || + if ( hashlen > sig_len || asn_len > sig_len || hashlen + asn_len > sig_len ) { return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );