diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-11-28 03:56:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-11-28 03:56:30 +0000 |
commit | eec9e8a052407611df223fec982588e7a2bd7f49 (patch) | |
tree | 70742ae3dd80f86aca5b61afc079811d8aa2f826 /source3/utils/smbcacls.c | |
parent | a6b73b9767524fa6997bd31398d558a7cf1e4ac8 (diff) | |
download | samba-eec9e8a052407611df223fec982588e7a2bd7f49.tar.gz samba-eec9e8a052407611df223fec982588e7a2bd7f49.tar.xz samba-eec9e8a052407611df223fec982588e7a2bd7f49.zip |
fix a bunch of places where we can double-free a cli structure
(This used to be commit e2ba2383c9f679c076749a8f4fccefc3559e37ec)
Diffstat (limited to 'source3/utils/smbcacls.c')
-rw-r--r-- | source3/utils/smbcacls.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 2605442e8a5..670e1f6efef 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -710,14 +710,12 @@ struct cli_state *connect_one(char *share) if (!(c=cli_initialise(NULL)) || !cli_connect(c, server, &ip)) { DEBUG(0,("Connection to %s failed\n", server)); cli_shutdown(c); - SAFE_FREE(c); return NULL; } if (!cli_session_request(c, &calling, &called)) { DEBUG(0,("session request to %s failed\n", called.name)); cli_shutdown(c); - SAFE_FREE(c); if (strcmp(called.name, "*SMBSERVER")) { make_nmb_name(&called , "*SMBSERVER", 0x20); goto again; @@ -730,7 +728,6 @@ struct cli_state *connect_one(char *share) if (!cli_negprot(c)) { DEBUG(0,("protocol negotiation failed\n")); cli_shutdown(c); - SAFE_FREE(c); return NULL; } @@ -747,7 +744,6 @@ struct cli_state *connect_one(char *share) lp_workgroup())) { DEBUG(0,("session setup failed: %s\n", cli_errstr(c))); cli_shutdown(c); - SAFE_FREE(c); return NULL; } @@ -757,7 +753,6 @@ struct cli_state *connect_one(char *share) password, strlen(password)+1)) { DEBUG(0,("tree connect failed: %s\n", cli_errstr(c))); cli_shutdown(c); - SAFE_FREE(c); return NULL; } |