diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-07-29 17:58:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-07-30 17:59:36 +0200 |
commit | 09e401e01bf943026a1abf9b93582c2015c4e338 (patch) | |
tree | bc710a6c78a678f559bc557739a6098d6c2d434d /lib/smb.h | |
parent | fe60cbfbbfc2aa5a2bd46165a7304e3031041fd0 (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |