summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-11-30 09:49:08 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-11-30 10:46:11 +0100
commitad0106bca2368719e245a672fc303d6f836b205a (patch)
tree13db0b3eef6bee6994ba7f23eeca3f04b12c99e9
parent20dda2feb85303eea24e62bda68348e4b133944d (diff)
downloadgnutls-ad0106bca2368719e245a672fc303d6f836b205a.tar.gz
allow specifying NULL buffer in gnutls_x509_crt_get_*_unique_id()
-rw-r--r--lib/x509/x509.c2
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;