diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_asn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index 799fee771b..dd4a2e3203 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c @@ -225,7 +225,7 @@ static int ssl_session_strndup(char **pdst, ASN1_OCTET_STRING *src) static int ssl_session_memcpy(unsigned char *dst, size_t *pdstlen, ASN1_OCTET_STRING *src, size_t maxlen) { - if (src == NULL) { + if (src == NULL || src->length == 0) { *pdstlen = 0; return 1; } |