diff options
author | Tim Potter <tpot@samba.org> | 2003-09-16 03:54:42 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-09-16 03:54:42 +0000 |
commit | eb268003f4282849bc03dae4f6fc27a9bec852ba (patch) | |
tree | e9f7d5e289953573da6e6ccca0d9f57e61fd0519 /source3/libsmb/trusts_util.c | |
parent | 1555cacd7c7814571ed8bb91a0d3a722cf7dc30b (diff) | |
download | samba-eb268003f4282849bc03dae4f6fc27a9bec852ba.tar.gz |
Applied Steve Langasek's patch for bug #450.
(This used to be commit e3cb0cd0d60d90a76e5f74d5bda702148584ab30)
Diffstat (limited to 'source3/libsmb/trusts_util.c')
-rw-r--r-- | source3/libsmb/trusts_util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c index 4e02b29f92c..c18641bc845 100644 --- a/source3/libsmb/trusts_util.c +++ b/source3/libsmb/trusts_util.c @@ -180,9 +180,10 @@ BOOL enumerate_domain_trusts( TALLOC_CTX *mem_ctx, const char *domain, done: /* cleanup */ - - cli_nt_session_close( cli ); - cli_shutdown( cli ); + if (cli) { + cli_nt_session_close( cli ); + cli_shutdown( cli ); + } return NT_STATUS_IS_OK(result); } |