mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
smb: init *msg to NULL in smb_send_and_recv()
... it might otherwise return OK from this function leaving that pointer uninitialized. Bug: https://crbug.com/oss-fuzz/16907 Closes #4286
This commit is contained in:
parent
82a2168e61
commit
198b73d12c
@ -606,6 +606,7 @@ static CURLcode smb_send_and_recv(struct connectdata *conn, void **msg)
|
||||
{
|
||||
struct smb_conn *smbc = &conn->proto.smbc;
|
||||
CURLcode result;
|
||||
*msg = NULL; /* if it returns early */
|
||||
|
||||
/* Check if there is data in the transfer buffer */
|
||||
if(!smbc->send_size && smbc->upload_size) {
|
||||
|
Loading…
Reference in New Issue
Block a user