mirror of
https://repo.or.cz/socat.git
synced 2025-01-08 22:12:33 +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
4
CHANGES
4
CHANGES
|
@ -14,6 +14,10 @@ Corrections:
|
||||||
|
|
||||||
Removed unused usleep() call from sycls.c
|
Removed unused usleep() call from sycls.c
|
||||||
|
|
||||||
|
Unsetenv() was conditional in sysutils.c but not in xio-openssl.c thus
|
||||||
|
building failed on Solaris 9.
|
||||||
|
Thanks to Greg Earle for reporting this issue and providing a patch.
|
||||||
|
|
||||||
Porting:
|
Porting:
|
||||||
In gcc version 10 the default changed from -fcommon to -fno-common.
|
In gcc version 10 the default changed from -fcommon to -fno-common.
|
||||||
Consequently, linking filan and procan failed with error
|
Consequently, linking filan and procan failed with error
|
||||||
|
|
|
@ -1243,7 +1243,9 @@ static int openssl_delete_cert_info(void) {
|
||||||
const char *eq = strchr(*entry, '=');
|
const char *eq = strchr(*entry, '=');
|
||||||
if (eq == NULL) eq = *entry + strlen(*entry);
|
if (eq == NULL) eq = *entry + strlen(*entry);
|
||||||
envname[0] = '\0'; strncat(envname, *entry, eq-*entry);
|
envname[0] = '\0'; strncat(envname, *entry, eq-*entry);
|
||||||
|
#if HAVE_UNSETENV
|
||||||
Unsetenv(envname);
|
Unsetenv(envname);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
++entry;
|
++entry;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue