diff options
author | Jeremy Allison <jra@samba.org> | 1998-06-16 18:25:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-06-16 18:25:36 +0000 |
commit | bbd7ca65e706457f5dbc046e83b4bd8cdde5be8f (patch) | |
tree | 49c88c02e70e23012ee37b34bc4f47e6a963cee8 /source3/libsmb/clientgen.c | |
parent | c2e2e691ebece45f0dc3226ce1e5a61d1bb9fbce (diff) | |
download | samba-bbd7ca65e706457f5dbc046e83b4bd8cdde5be8f.tar.gz samba-bbd7ca65e706457f5dbc046e83b4bd8cdde5be8f.tar.bz2 samba-bbd7ca65e706457f5dbc046e83b4bd8cdde5be8f.zip |
clientgen: Added USE_SSL for client shutdown.
clitar.c: Added 'Samba style' comments before string_create_s().
loadparm.c: Fixed missing comma in SSL code.
util.c: Removed string_create_s(). Currently it's only called from
clitar.c and having it here as well as a static in clitar
causes the compile to break (Richard, please decide where
you want this function).
lib/rpc/parse/parse_net.c: Fix from <anders.blomdell@control.lth.se>
to stop coredump on missing parameter.
Jeremy.
(This used to be commit d23b44322570cb9a7aa2b86407bf4f91010a237b)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 68bd369606..093b3aedf9 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -1718,6 +1718,9 @@ void cli_shutdown(struct cli_state *cli) { if (cli->outbuf) free(cli->outbuf); if (cli->inbuf) free(cli->inbuf); +#ifdef USE_SSL + if (cli->fd != -1) sslutil_disconnect(cli->fd); +#endif /* USE_SSL */ if (cli->fd != -1) close(cli->fd); memset(cli, 0, sizeof(*cli)); } |