summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-11-01 09:59:23 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-11-01 09:59:56 +0100
commit6131d7d1183cc675f3ea7562a11bda84c6bfe29a (patch)
tree77a93eb49398012ad59d35a5558ac8ff21aeca1d
parentf80adc5cf68437f00d3b7b1a3ecd12e3e0e8d4e7 (diff)
downloadgnutls-6131d7d1183cc675f3ea7562a11bda84c6bfe29a.tar.gz
when calling gnutls_x509_crt_get_subject_key_id set the id_size
-rw-r--r--lib/x509/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/common.c b/lib/x509/common.c
index f635471453..96feac0d29 100644
--- a/lib/x509/common.c
+++ b/lib/x509/common.c
@@ -1979,6 +1979,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;