From: Nikos Mavrogiannopoulos Date: Sat, 1 Nov 2014 08:59:23 +0000 (+0100) Subject: when calling gnutls_x509_crt_get_subject_key_id set the id_size X-Git-Tag: gnutls_3_4_0~711 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e03ec5ee741d35a83ee2a835010b975ac394eb4;p=thirdparty%2Fgnutls.git when calling gnutls_x509_crt_get_subject_key_id set the id_size --- diff --git a/lib/x509/common.c b/lib/x509/common.c index dc240046ea..7b4519db7d 100644 --- a/lib/x509/common.c +++ b/lib/x509/common.c @@ -1966,6 +1966,7 @@ _gnutls_check_valid_key_id(gnutls_datum_t *key_id, goto out; } + id_size = sizeof(id); if (gnutls_x509_crt_get_subject_key_id(cert, id, &id_size, NULL) < 0) { gnutls_assert(); goto out;