[xiph-commits] r18485 - icecast/trunk/log
ph3-der-loewe at svn.xiph.org
ph3-der-loewe at svn.xiph.org
Tue Jul 31 16:09:42 PDT 2012
Author: ph3-der-loewe
Date: 2012-07-31 16:09:42 -0700 (Tue, 31 Jul 2012)
New Revision: 18485
Modified:
icecast/trunk/log/log.c
Log:
Corrected check for the value of priority to be within valid range.
Modified: icecast/trunk/log/log.c
===================================================================
--- icecast/trunk/log/log.c 2012-07-31 22:36:33 UTC (rev 18484)
+++ icecast/trunk/log/log.c 2012-07-31 23:09:42 UTC (rev 18485)
@@ -554,7 +554,7 @@
if (log_id < 0 || log_id >= LOG_MAXLOGS) return; /* Bad log number */
if (loglist[log_id].level < priority) return;
- if (priority > sizeof(prior)/sizeof(prior[0])) return; /* Bad priority */
+ if (!priority || priority > sizeof(prior)/sizeof(prior[0])) return; /* Bad priority */
va_start(ap, fmt);
More information about the commits
mailing list