Commit d5caf10c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Accept incomplete http cookies without domain.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e473f7e6 e9df8f77
...@@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path, ...@@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
cvalue = av_strdup(param); cvalue = av_strdup(param);
} }
} }
if (!cdomain)
cdomain = av_strdup(domain);
// ensure all of the necessary values are valid // ensure all of the necessary values are valid
if (!cdomain || !cpath || !cvalue) { if (!cdomain || !cpath || !cvalue) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment