Skip to content

Commit f9315ea

Browse files
committed
ffserver_config: Check for failure to allocate FFServerIPAddressACL
Fixes CID1396537 Signed-off-by: Michael Niedermayer <[email protected]>
1 parent 0abcebe commit f9315ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ffserver_config.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ void ffserver_parse_acl_row(FFServerStream *stream, FFServerStream* feed,
150150
}
151151

152152
nacl = av_mallocz(sizeof(*nacl));
153+
if (!nacl) {
154+
fprintf(stderr, "Failed to allocate FFServerIPAddressACL\n");
155+
goto bail;
156+
}
157+
153158
naclp = 0;
154159

155160
acl.next = 0;

0 commit comments

Comments
 (0)