From 0a9874c1c76c0ccc71caba7ee85a0ee1a91808c5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 18 Dec 2007 01:30:52 +0100 Subject: [PATCH] Prevent another segfault. Michael --- source/passdb/passdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c index 9311b8a74e6..4228f6c32fb 100644 --- a/source/passdb/passdb.c +++ b/source/passdb/passdb.c @@ -1552,7 +1552,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(); -- 2.11.4.GIT