strdup() the default stathost in config struct as it can be freed
This commit is contained in:
parent
0ecb688269
commit
3f0ccdef3c
@ -351,7 +351,7 @@ main (int argc, char **argv)
|
||||
if (!config.stathost) {
|
||||
log_message (LOG_INFO, "Setting stathost to \"%s\".",
|
||||
TINYPROXY_STATHOST);
|
||||
config.stathost = TINYPROXY_STATHOST;
|
||||
config.stathost = strdup (TINYPROXY_STATHOST);
|
||||
}
|
||||
|
||||
if (!config.user) {
|
||||
|
Loading…
Reference in New Issue
Block a user