diff --git a/ffserver_config.c b/ffserver_config.c index 05c6622fde..54135be989 100644 --- a/ffserver_config.c +++ b/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;