mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
off by 1 error, although not triggered by icecast/ices
svn path=/icecast/trunk/log/; revision=11073
This commit is contained in:
parent
ecca4eb6bc
commit
167bf0c527
@ -392,7 +392,7 @@ void log_contents (int log_id, char **_contents, unsigned int *_len)
|
||||
char *ptr;
|
||||
|
||||
if (log_id < 0) return;
|
||||
if (log_id > LOG_MAXLOGS) return; /* Bad log number */
|
||||
if (log_id >= LOG_MAXLOGS) return; /* Bad log number */
|
||||
|
||||
_lock_logger ();
|
||||
remain = loglist [log_id].total + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user