summaryrefslogtreecommitdiff
path: root/lib/smb.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-07-29 17:58:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-07-30 17:59:36 +0200
commit09e401e01bf943026a1abf9b93582c2015c4e338 (patch)
treebc710a6c78a678f559bc557739a6098d6c2d434d /lib/smb.h
parentfe60cbfbbfc2aa5a2bd46165a7304e3031041fd0 (diff)
downloadcurl-09e401e01bf943026a1abf9b93582c2015c4e338.tar.gz
smb: fix memory leak on early failure
... by making sure connection related data (->share) is stored in the connection and not in the easy handle. Detected by OSS-fuzz Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9369 Fixes #2769 Closes #2810
Diffstat (limited to 'lib/smb.h')
-rw-r--r--lib/smb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/smb.h b/lib/smb.h
index c3ee7ae03..9ce6b5615 100644
--- a/lib/smb.h
+++ b/lib/smb.h
@@ -35,6 +35,7 @@ struct smb_conn {
enum smb_conn_state state;
char *user;
char *domain;
+ char *share;
unsigned char challenge[8];
unsigned int session_key;
unsigned short uid;