From dd728b4712fbb3111f325617dc90d27b41205600 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 11 Mar 2006 02:09:18 +0000 Subject: [PATCH] r14182: Ensure we know that dom_sid cannot be null. Jeremy. (This used to be commit e3a28bf4c8064f7053b7d1a25a2f087ac2095fcd) --- source3/rpc_server/srv_lsa_nt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index bdfb742f7a0..80c86a30798 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -120,7 +120,7 @@ static int init_dom_ref(DOM_R_REF *ref, const char *dom_name, DOM_SID *dom_sid) ref->max_entries = MAX_REF_DOMAINS; ref->num_ref_doms_2 = num+1; - ref->hdr_ref_dom[num].ptr_dom_sid = dom_sid != NULL ? 1 : 0; + ref->hdr_ref_dom[num].ptr_dom_sid = 1; /* dom sid cannot be NULL. */ init_unistr2(&ref->ref_dom[num].uni_dom_name, dom_name, UNI_FLAGS_NONE); init_uni_hdr(&ref->hdr_ref_dom[num].hdr_dom_name, &ref->ref_dom[num].uni_dom_name);