mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
syslogdctrl: Fix compiler error and SEGV
Fixes #11574 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -71,7 +71,7 @@ int main(void)
|
||||
if (!findkey(kv, "REMOTELOG_PROTOCOL", protocol))
|
||||
{
|
||||
/* fall back to UDP if no protocol was given */
|
||||
protocol = "udp";
|
||||
strcpy(protocol, "udp");
|
||||
}
|
||||
|
||||
if (strspn(hostname, VALID_FQDN) != strlen(hostname))
|
||||
|
||||
Reference in New Issue
Block a user