From a5d2a6fc40e033f2f8342269a6169d23b1bb4542 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 18 Dec 2007 01:32:02 +0100 Subject: [PATCH] Fix another segfault. Michael --- source/passdb/secrets.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index 133d2b2e623..cd6c751979a 100644 --- a/source/passdb/secrets.c +++ b/source/passdb/secrets.c @@ -691,7 +691,9 @@ BOOL get_trust_pw_clear(const char *domain, char **ret_pwd, return False; } - *channel = SEC_CHAN_DOMAIN; + if (channel != NULL) { + *channel = SEC_CHAN_DOMAIN; + } if (account_name != NULL) { *account_name = lp_workgroup();