ffserver: check for EOF|error at loop condition

Signed-off-by: 's avatarReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
parent 0121ddab
...@@ -1199,9 +1199,7 @@ static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPConte ...@@ -1199,9 +1199,7 @@ static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPConte
acl = av_mallocz(sizeof(FFServerIPAddressACL)); acl = av_mallocz(sizeof(FFServerIPAddressACL));
/* Build ACL */ /* Build ACL */
for(;;) { while (fgets(line, sizeof(line), f)) {
if (fgets(line, sizeof(line), f) == NULL)
break;
line_num++; line_num++;
p = line; p = line;
while (av_isspace(*p)) while (av_isspace(*p))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment