summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-18 01:30:52 +0100
committerMichael Adam <obnox@samba.org>2007-12-18 01:30:52 +0100
commita3081ba5b52fd6174b4e84f69c8116b47fab6f0c (patch)
treee641552b4bce4d3c01b9d62581c8e53356b3181a
parentd9553e8fd19a0832f3fbd19ffcc595a701d87e34 (diff)
downloadsamba-a3081ba5b52fd6174b4e84f69c8116b47fab6f0c.tar.gz
samba-a3081ba5b52fd6174b4e84f69c8116b47fab6f0c.tar.bz2
samba-a3081ba5b52fd6174b4e84f69c8116b47fab6f0c.zip
Prevent another segfault.
Michael (This used to be commit 0a9874c1c76c0ccc71caba7ee85a0ee1a91808c5)
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 9311b8a74e..4228f6c32f 100644
--- a/source3/passdb/passdb.c
+++ b/source3/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();