ffserver_config: Check for failure to allocate FFServerIPAddressACL

Fixes CID1396537

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-12-22 19:04:55 +01:00
parent 0abcebe3d6
commit f9315ea984
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ void ffserver_parse_acl_row(FFServerStream *stream, FFServerStream* feed,
}
nacl = av_mallocz(sizeof(*nacl));
if (!nacl) {
fprintf(stderr, "Failed to allocate FFServerIPAddressACL\n");
goto bail;
}
naclp = 0;
acl.next = 0;