Skip to content
Snippets Groups Projects
Commit 76c8fbc5 authored by wm4's avatar wm4 Committed by Michael Niedermayer
Browse files

http: never send 'Cookie: (null)' to the server


If a domain has some cookies set, but matching the cookie fails due to
the port being different, get_cookies() succeeds, but sets cookies to
NULL. The caller of get_cookies() didn't check for the NULL value.

This also avoids passing NULL to libc string functions, which is
undefined behavior

Fixes Ticket2180

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 2fd14f06
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment