Skip to content

Commit

Permalink
http: Possibly fix some flaky http behaviour
Browse files Browse the repository at this point in the history
Might fix crashes
  • Loading branch information
wdoekes committed Dec 13, 2024
1 parent 71c24cc commit 79b520a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opt/httpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ httpclient_request_t *httpclient_open2( const char *p_method,
return NULL;
}

/* Wipe mem. So we don't return bogus/old status codes for instance. */
memset( l_request, 0, sizeof(*l_request) );

/* Work through the URL, work out what we have - scheme first. */
if ( strncmp( p_url, "http://", 7 ) == 0 )
{
Expand Down

0 comments on commit 79b520a

Please sign in to comment.