gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 194/220: smb: init *msg to NULL in smb_send_and_rec


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 194/220: smb: init *msg to NULL in smb_send_and_recv()
Date: Thu, 12 Sep 2019 17:29:14 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 198b73d12ce36256fb7db85a256920d536b20a72
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Sep 2 15:28:30 2019 +0200

    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
---
 lib/smb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/smb.c b/lib/smb.c
index 2703520a6..f66c05ca4 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -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) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]