diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-09-01 04:37:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:01 -0500 |
commit | afed7c86a02fa1db942e64e5a44196dcde26d6a6 (patch) | |
tree | ef445cd6071e94bcedc7f44a4a5757ced348516c | |
parent | ba1c80524ae34662b11b4c5acbaa90d831a5213a (diff) | |
download | samba-afed7c86a02fa1db942e64e5a44196dcde26d6a6.tar.gz samba-afed7c86a02fa1db942e64e5a44196dcde26d6a6.tar.bz2 samba-afed7c86a02fa1db942e64e5a44196dcde26d6a6.zip |
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)
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 4 |
1 files 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); } /* |