ffserver_config: Check for failure to allocate FFServerIPAddressACL

Fixes CID1396537

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/244/head
Michael Niedermayer 8 years ago
parent 0abcebe3d6
commit f9315ea984
  1. 5
      ffserver_config.c

@ -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…
Cancel
Save