From e9df8f7725cfe53272877f1d8595a7a0cba853cc Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 10 Jun 2013 10:52:40 +0200 Subject: [PATCH] Accept incomplete http cookies without domain. Works around a bug in some servers that apparently send incomplete cookies. Fixes a part of ticket #2619. Reviewed-by: Micah Galizia --- libavformat/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 7f33ecaf29..e75ad9e989 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path, cvalue = av_strdup(param); } } + if (!cdomain) + cdomain = av_strdup(domain); // ensure all of the necessary values are valid if (!cdomain || !cpath || !cvalue) {