diff options
author | Luke Leighton <lkcl@samba.org> | 2000-04-09 02:34:15 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-04-09 02:34:15 +0000 |
commit | f5a505fb33169462f8a30614d2c729587b54f34c (patch) | |
tree | b829bf9508ebda0b53c130a9c55aac8b0ea95a9f | |
parent | 39736097c5bcbd4e87eedda8ea08e237376d3df8 (diff) | |
download | samba-f5a505fb33169462f8a30614d2c729587b54f34c.tar.gz |
adding debug warning if cli_ulogoff attempted to be called with a fd of -1
-rw-r--r-- | source/libsmb/clientgen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 98d8fa78de5..cd10d490767 100644 --- a/source/libsmb/clientgen.c +++ b/source/libsmb/clientgen.c @@ -1053,6 +1053,11 @@ BOOL cli_session_setup(struct cli_state *cli, BOOL cli_ulogoff(struct cli_state *cli) { + if (cli->fd == -1) + { + DEBUG(4,("cli_ulogoff: file descriptor not initialised\n")); + return False; + } if (cli->reuse) { DEBUG(3,("cli_ulogoff: reuse enabled, skipping SMBulogoff\n")); |