Apply patch fixing security issue from intexxia labs - #1048-261101
2001-11-26 Kevin Vandersloot <kfv101@psu.edu> * gnuserv.c: Apply patch fixing security issue from intexxia labs - #1048-261101
This commit is contained in:
committed by
Kevin Vandersloot
parent
a478d380f4
commit
ca94618e27
@@ -93,7 +93,7 @@ syslog_message (int priority, char *format, ...)
|
|||||||
vsnprintf (buffer, BUFSIZ-1, format, ap);
|
vsnprintf (buffer, BUFSIZ-1, format, ap);
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
|
|
||||||
syslog (priority, buffer);
|
syslog (priority, "%s", buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -108,7 +108,7 @@ syslog_io_message (int priority, char *format, ...)
|
|||||||
va_end (ap);
|
va_end (ap);
|
||||||
|
|
||||||
snprintf (buffer2, BUFSIZ-1, "%s: %s", buffer, strerror (errno));
|
snprintf (buffer2, BUFSIZ-1, "%s: %s", buffer, strerror (errno));
|
||||||
syslog (priority, buffer2);
|
syslog (priority, "%s", buffer2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user