]> granicus.if.org Git - curl/commit
smb: fix memory leak on early failure
authorDaniel Stenberg <daniel@haxx.se>
Sun, 29 Jul 2018 15:58:10 +0000 (17:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Jul 2018 15:59:36 +0000 (17:59 +0200)
commit09e401e01bf943026a1abf9b93582c2015c4e338
treebc710a6c78a678f559bc557739a6098d6c2d434d
parentfe60cbfbbfc2aa5a2bd46165a7304e3031041fd0
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
lib/smb.c
lib/smb.h