ffserver: check for EOF|error at loop condition

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2014-12-26 19:01:31 -03:00
parent 0121ddabb8
commit a18456a203

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