Commit f9315ea9 authored by Michael Niedermayer's avatar Michael Niedermayer

ffserver_config: Check for failure to allocate FFServerIPAddressACL

Fixes CID1396537
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0abcebe3
...@@ -150,6 +150,11 @@ void ffserver_parse_acl_row(FFServerStream *stream, FFServerStream* feed, ...@@ -150,6 +150,11 @@ void ffserver_parse_acl_row(FFServerStream *stream, FFServerStream* feed,
} }
nacl = av_mallocz(sizeof(*nacl)); nacl = av_mallocz(sizeof(*nacl));
if (!nacl) {
fprintf(stderr, "Failed to allocate FFServerIPAddressACL\n");
goto bail;
}
naclp = 0; naclp = 0;
acl.next = 0; acl.next = 0;
......
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