From 883874c5628f70279ea733e08153b91ea3f83c25 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 23 Dec 2004 18:40:50 +0000 Subject: r4346: Fix cut-and-paste error - bugid #2189. Fixed by Buck Huppmann Jeremy. (This used to be commit 5c22cb082c86088add0db21541a8079c516c9fd9) --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index c18e253f7b..8c37a90e73 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1454,7 +1454,7 @@ static ADS_STATUS ads_add_machine_acct(ADS_STRUCT *ads, const char *machine_name psp4 = talloc_asprintf(ctx, "HOST/%s", my_fqdn); strlower_m(&psp4[5]); for (i = 0; i < next_spn; i++) { - if (strequal(servicePrincipalName[i], psp3)) + if (strequal(servicePrincipalName[i], psp4)) break; } if (i == next_spn) { -- cgit