String not properly NUL-terminated when no X509_NAME is given.

PR: 618
This commit is contained in:
Richard Levitte
2003-05-21 14:44:59 +00:00
parent 46956f0670
commit fd37856472

View File

@@ -94,6 +94,7 @@ int i;
OPENSSL_free(b);
}
strncpy(buf,"NO X509_NAME",len);
buf[len-1]='\0';
return buf;
}