mirror of https://git.ffmpeg.org/ffmpeg.git
ffserver_config: Check for failure to allocate FFServerIPAddressACL
Fixes CID1396537 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0abcebe3d6
commit
f9315ea984
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue