Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
7eb5e1b6
Commit
7eb5e1b6
authored
Jul 31, 2012
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected check for the value of priority to be within valid range.
svn path=/icecast/trunk/log/; revision=18485
parent
2abd67d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/log/log.c
src/log/log.c
+1
-1
No files found.
src/log/log.c
View file @
7eb5e1b6
...
...
@@ -554,7 +554,7 @@ void log_write(int log_id, unsigned priority, const char *cat, const char *func,
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment