From 919d13d2383bd7318b80ed0c5b723323a79a8996 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Tue, 31 Mar 2015 12:53:25 +0530 Subject: avformat/http: Fix null check on allocated value probably fixes CID 1292299 Signed-off-by: Michael Niedermayer --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/http.c b/libavformat/http.c index da3c9bec1d..45533e4dbd 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -495,7 +495,7 @@ static int cookie_string(AVDictionary *dict, char **cookies) e = NULL; if (*cookies) av_free(*cookies); *cookies = av_malloc(len); - if (!cookies) return AVERROR(ENOMEM); + if (!*cookies) return AVERROR(ENOMEM); *cookies[0] = '\0'; // write out the cookies -- cgit v1.2.3