]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
syslogdctrl: Fix compiler error and SEGV
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 Jan 2018 14:51:40 +0000 (14:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 Jan 2018 14:51:40 +0000 (14:51 +0000)
Fixes #11574

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/118/filelists/files
src/misc-progs/syslogdctrl.c

index 162f586d3ad7c7fafde43ea8c45579ace2dff94c..2ab434718f971c03c800db4481f8eb4b8a773f2f 100644 (file)
@@ -10,6 +10,7 @@ srv/web/ipfire/cgi-bin/ids.cgi
 srv/web/ipfire/cgi-bin/logs.cgi/showrequestfromcountry.dat
 srv/web/ipfire/cgi-bin/logs.cgi/urlfilter.dat
 usr/local/bin/rebuild-initrd
+usr/local/bin/syslogdctrl
 usr/sbin/updxlrator
 var/ipfire/langs
 var/ipfire/updatexlrator/bin/download
index 83727162efb74cc9696d61a0234370f4a8fa6877..6d7dfacaa2c58b282102e70b6ea361e4323b8543 100644 (file)
@@ -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))