mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
wrap cli_tdis() in check to make sure we have a valid cnum
This commit is contained in:
parent
d940a2f773
commit
e54342b062
@ -375,6 +375,7 @@ void cli_close_connection(struct cli_state *cli)
|
||||
* later. This tree disconnect forces the peer to clean up, since the
|
||||
* connection will be going away.
|
||||
*/
|
||||
if ( cli->cnum != -1 )
|
||||
cli_tdis(cli);
|
||||
|
||||
cli_nt_session_close(cli);
|
||||
|
Loading…
Reference in New Issue
Block a user