1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 22:23:24 +00:00

Socat might have crashed on peer cert without subject

This commit is contained in:
Gerhard Rieger 2021-11-27 15:04:08 +01:00
parent c3081fbba9
commit abdf738d1f
2 changed files with 5 additions and 1 deletions

View file

@ -1539,7 +1539,7 @@ static int openssl_setenv_cert_name(const char *field, X509_NAME *name) {
}
memcpy(str, buf, len);
str[len] = '\0';
Info2("SSL peer cert %s: \"%s\"", field, buf);
Info2("SSL peer cert %s: \"%s\"", field, str);
xiosetenv2("OPENSSL_X509", field, str, 1, NULL);
free(str);
BIO_free(bio);