mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -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
e00aafda3a
commit
d574647025
@ -392,7 +392,7 @@ void log_contents (int log_id, char **_contents, unsigned int *_len)
|
|||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
if (log_id < 0) return;
|
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 ();
|
_lock_logger ();
|
||||||
remain = loglist [log_id].total + 1;
|
remain = loglist [log_id].total + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user