Commit adb80977 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: fix NULL deref if password is missing

Basic authentication requires both username and password.
parent 9bc4991e
......@@ -58,7 +58,7 @@ vlc_http_res_req(const struct vlc_http_resource *res, void *opaque)
}
/* Authentication */
if (res->username != NULL)
if (res->username != NULL && res->password != NULL)
vlc_http_msg_add_creds_basic(req, false, res->username, res->password);
/* Request context */
......
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