Browse Source

ffserver: check for EOF|error at loop condition

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
tags/n2.6
Reynaldo H. Verdejo Pinochet 11 years ago
parent
commit
a18456a203
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      ffserver.c

+ 1
- 3
ffserver.c View File

@@ -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))


Loading…
Cancel
Save