Browse Source

ffserver_config: Check for failure to allocate FFServerIPAddressACL

Fixes CID1396537

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3
Michael Niedermayer 8 years ago
parent
commit
f9315ea984
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      ffserver_config.c

+ 5
- 0
ffserver_config.c 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;


Loading…
Cancel
Save