mirror of
https://github.com/curl/curl.git
synced 2026-06-02 01:24:16 +03: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue