[FFmpeg-cvslog] Accept incomplete http cookies without domain.

Carl Eugen Hoyos git at videolan.org
Mon Jun 10 16:26:59 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Jun 10 10:52:40 2013 +0200| [e9df8f7725cfe53272877f1d8595a7a0cba853cc] | committer: Carl Eugen Hoyos

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9df8f7725cfe53272877f1d8595a7a0cba853cc
---

 libavformat/http.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 7f33eca..e75ad9e 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) {



More information about the ffmpeg-cvslog mailing list