Commit 0e722f01 authored by Tristan Matthews's avatar Tristan Matthews

http: fix sizeof mismatch (cid #1349952)

parent 3ec11625
......@@ -176,7 +176,7 @@ vlc_tls_t *vlc_https_connect_proxy(vlc_tls_creds_t *creds,
if (resp == NULL)
return NULL;
struct vlc_tls *psock = malloc(sizeof (*proxy));
struct vlc_tls *psock = malloc(sizeof (*psock));
if (unlikely(psock == NULL))
vlc_http_msg_destroy(resp); /* <- sock is destroyed there too */
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