From eb268003f4282849bc03dae4f6fc27a9bec852ba Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 16 Sep 2003 03:54:42 +0000 Subject: Applied Steve Langasek's patch for bug #450. (This used to be commit e3cb0cd0d60d90a76e5f74d5bda702148584ab30) --- source3/libsmb/trusts_util.c | 7 ++++--- 1 file 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); } -- cgit