diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-30 09:49:08 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-30 10:46:11 +0100 |
commit | ad0106bca2368719e245a672fc303d6f836b205a (patch) | |
tree | 13db0b3eef6bee6994ba7f23eeca3f04b12c99e9 | |
parent | 20dda2feb85303eea24e62bda68348e4b133944d (diff) | |
download | gnutls-ad0106bca2368719e245a672fc303d6f836b205a.tar.gz |
allow specifying NULL buffer in gnutls_x509_crt_get_*_unique_id()
-rw-r--r-- | lib/x509/x509.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c index db8b07df49..1e586e3f7d 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -3574,7 +3574,6 @@ gnutls_x509_crt_get_subject_unique_id(gnutls_x509_crt_t crt, char *buf, if (datum.size > *buf_size) { /* then we're not going to fit */ *buf_size = datum.size; - buf[0] = '\0'; result = GNUTLS_E_SHORT_MEMORY_BUFFER; } else { *buf_size = datum.size; @@ -3618,7 +3617,6 @@ gnutls_x509_crt_get_issuer_unique_id(gnutls_x509_crt_t crt, char *buf, if (datum.size > *buf_size) { /* then we're not going to fit */ *buf_size = datum.size; - buf[0] = '\0'; result = GNUTLS_E_SHORT_MEMORY_BUFFER; } else { *buf_size = datum.size; |