String not properly NUL-terminated when no X509_NAME is given.
PR: 618
This commit is contained in:
@@ -94,6 +94,7 @@ int i;
|
||||
OPENSSL_free(b);
|
||||
}
|
||||
strncpy(buf,"NO X509_NAME",len);
|
||||
buf[len-1]='\0';
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user