mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 06:33:24 +00:00
Unsetenv was not conditional in xio-openssl.c
This commit is contained in:
parent
d4cce300a4
commit
3ef518fde0
2 changed files with 6 additions and 0 deletions
|
@ -1243,7 +1243,9 @@ static int openssl_delete_cert_info(void) {
|
|||
const char *eq = strchr(*entry, '=');
|
||||
if (eq == NULL) eq = *entry + strlen(*entry);
|
||||
envname[0] = '\0'; strncat(envname, *entry, eq-*entry);
|
||||
#if HAVE_UNSETENV
|
||||
Unsetenv(envname);
|
||||
#endif
|
||||
} else {
|
||||
++entry;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue