Skip to content

Commit

Permalink
ffserver: check for EOF|error at loop condition
Browse files Browse the repository at this point in the history
Signed-off-by: Reynaldo H. Verdejo Pinochet <[email protected]>
  • Loading branch information
reynaldo committed Dec 26, 2014
1 parent 0121dda commit a18456a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ffserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1199,9 +1199,7 @@ static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPConte
acl = av_mallocz(sizeof(FFServerIPAddressACL));

/* Build ACL */
for(;;) {
if (fgets(line, sizeof(line), f) == NULL)
break;
while (fgets(line, sizeof(line), f)) {
line_num++;
p = line;
while (av_isspace(*p))
Expand Down

0 comments on commit a18456a

Please sign in to comment.