r17983: Use the UTF8-correct strcasecmp_m call for sorting these entries,
authorAndrew Bartlett <abartlet@samba.org>
Fri, 1 Sep 2006 04:37:31 +0000 (04:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:01 +0000 (14:17 -0500)
which has been recently fixed to cope with NULL pointers (fix segfault
on Solaris).

Andrew Bartlett
(This used to be commit ce36069765e8dff3bbdabed5d50af1c7a8fa8e45)

source4/rpc_server/lsa/dcesrv_lsa.c

index a3157e74a58789daa653c057204baab03dedb2ea..e39f461f994196ce323d3362774a137e7f0768f0 100644 (file)
@@ -1271,7 +1271,7 @@ static NTSTATUS lsa_CloseTrustedDomainEx(struct dcesrv_call_state *dce_call,
 */
 static int compare_DomainInfo(struct lsa_DomainInfo *e1, struct lsa_DomainInfo *e2)
 {
-       return strcasecmp(e1->name.string, e2->name.string);
+       return strcasecmp_m(e1->name.string, e2->name.string);
 }
 
 /* 
@@ -1355,7 +1355,7 @@ static NTSTATUS lsa_EnumTrustDom(struct dcesrv_call_state *dce_call, TALLOC_CTX
 */
 static int compare_TrustDomainInfoInfoEx(struct lsa_TrustDomainInfoInfoEx *e1, struct lsa_TrustDomainInfoInfoEx *e2)
 {
-       return strcasecmp(e1->domain_name.string, e2->domain_name.string);
+       return strcasecmp_m(e1->netbios_name.string, e2->netbios_name.string);
 }
 
 /*