diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-11-01 09:59:23 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-11-01 09:59:56 +0100 |
commit | 6131d7d1183cc675f3ea7562a11bda84c6bfe29a (patch) | |
tree | 77a93eb49398012ad59d35a5558ac8ff21aeca1d | |
parent | f80adc5cf68437f00d3b7b1a3ecd12e3e0e8d4e7 (diff) | |
download | gnutls-6131d7d1183cc675f3ea7562a11bda84c6bfe29a.tar.gz |
when calling gnutls_x509_crt_get_subject_key_id set the id_size
-rw-r--r-- | lib/x509/common.c | 1 |
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; |