]> andersk Git - moira.git/commitdiff
Prevent against format string attack by adding third arg to syslog()
authorzacheiss <zacheiss>
Thu, 21 Sep 2000 07:36:40 +0000 (07:36 +0000)
committerzacheiss <zacheiss>
Thu, 21 Sep 2000 07:36:40 +0000 (07:36 +0000)
lib/critical.c

index c6971ded2266328c5a95e5517748eb4e92a47b2a..c1410e17c1e17b917597e5d50cfbd696eaf75e84 100644 (file)
@@ -116,7 +116,7 @@ void send_zgram(char *inst, char *msg)
   if (buf)
     {
       sprintf(buf, "MOIRA: %s %s", inst, msg);
-      syslog(LOG_ERR, buf);
+      syslog(LOG_ERR, "%s", buf);
       free(buf);
     }
 #endif
This page took 0.036305 seconds and 5 git commands to generate.