summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Michaleas <tutor@gentoo.org>2002-04-25 22:26:49 +0000
committerPete Michaleas <tutor@gentoo.org>2002-04-25 22:26:49 +0000
commit984d6a9e84d08668033394d5a4f082691d28ecd4 (patch)
tree65318128a51ae79ed5fee6d85e4571e78bb26d80 /net-analyzer/ntop/files
parentnew freetype - simple version bump (diff)
downloadhistorical-984d6a9e84d08668033394d5a4f082691d28ecd4.tar.gz
historical-984d6a9e84d08668033394d5a4f082691d28ecd4.tar.bz2
historical-984d6a9e84d08668033394d5a4f082691d28ecd4.zip
Fix for remote vulnerability
Diffstat (limited to 'net-analyzer/ntop/files')
-rw-r--r--net-analyzer/ntop/files/ntop-2.0_syslog_format.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-analyzer/ntop/files/ntop-2.0_syslog_format.patch b/net-analyzer/ntop/files/ntop-2.0_syslog_format.patch
new file mode 100644
index 000000000000..5fab91a38a47
--- /dev/null
+++ b/net-analyzer/ntop/files/ntop-2.0_syslog_format.patch
@@ -0,0 +1,29 @@
+diff -u ntop_original/util.c ntop/util.c
+--- ntop_original/util.c Thu Dec 27 02:54:29 2001
++++ ntop/util.c Thu Apr 25 17:34:55 2002
+@@ -2179,20 +2179,20 @@
+ #if 0
+ switch(traceLevel) {
+ case 0:
+- syslog(LOG_ERR, buf);
++ syslog(LOG_ERR, "%s", buf);
+ break;
+ case 1:
+- syslog(LOG_WARNING, buf);
++ syslog(LOG_WARNING, "%s", buf);
+ break;
+ case 2:
+- syslog(LOG_NOTICE, buf);
++ syslog(LOG_NOTICE, "%s", buf);
+ break;
+ default:
+- syslog(LOG_INFO, buf);
++ syslog(LOG_INFO, "%s", buf);
+ break;
+ }
+ #else
+- syslog(LOG_ERR, buf);
++ syslog(LOG_ERR, "%s", buf);
+ #endif
+ }
+ #endif