summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-10 10:52:40 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-10 10:52:40 +0200
commite9df8f7725cfe53272877f1d8595a7a0cba853cc (patch)
tree6c69ad3bab6d43afe28dd9c550aa88dee15323f0 /libavformat/http.c
parent990860736328b1b89ac922aa04bda00980762092 (diff)
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
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 2 insertions, 0 deletions
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) {