From afed7c86a02fa1db942e64e5a44196dcde26d6a6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 1 Sep 2006 04:37:31 +0000 Subject: r17983: Use the UTF8-correct strcasecmp_m call for sorting these entries, 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index a3157e74a5..e39f461f99 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -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); } /* -- cgit