summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-01-22 20:07:12 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-01-22 20:07:12 +0000
commite1d14a215a04f67e46d58b901c820a1a62704b3d (patch)
tree54e470a349ca0bd73920e3a0ca59769ef5e8929d
parentdea7e36076ecadb43bbc991cfd89d1150ba2c8e1 (diff)
downloadgnutls-e1d14a215a04f67e46d58b901c820a1a62704b3d.tar.gz
*** empty log message ***
-rw-r--r--lib/gnutls_x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c
index 78320b531a..87a831164a 100644
--- a/lib/gnutls_x509.c
+++ b/lib/gnutls_x509.c
@@ -3029,7 +3029,7 @@ int gnutls_x509_extract_certificate_dn_string(char *buf, unsigned int sizeof_buf
int ret, i;
char str_buffer[256];
- if (buf == NULL || sizeof_buf == 0) {
+ if (buf == NULL || sizeof_buf == 0 || cert == NULL || cert.size == 0) {
return GNUTLS_E_INVALID_REQUEST;
}