summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-16 03:54:42 +0000
committerTim Potter <tpot@samba.org>2003-09-16 03:54:42 +0000
commiteb268003f4282849bc03dae4f6fc27a9bec852ba (patch)
treee9f7d5e289953573da6e6ccca0d9f57e61fd0519 /source3
parent1555cacd7c7814571ed8bb91a0d3a722cf7dc30b (diff)
downloadsamba-eb268003f4282849bc03dae4f6fc27a9bec852ba.tar.gz
samba-eb268003f4282849bc03dae4f6fc27a9bec852ba.tar.bz2
samba-eb268003f4282849bc03dae4f6fc27a9bec852ba.zip
Applied Steve Langasek's patch for bug #450.
(This used to be commit e3cb0cd0d60d90a76e5f74d5bda702148584ab30)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/trusts_util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c
index 4e02b29f92..c18641bc84 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);
}