r15297: Move create_security_token() to samdb as it requires SAMDB (and the rest...
[samba.git] / source / auth / gensec / gensec_krb5.c
index f2f3361bf95dbe2d72cc07b653222f54f95f8c69..c07b5c95e3f0ea584cec84e39ab08e7ab619ac3f 100644 (file)
@@ -230,7 +230,7 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security
                DEBUG(2, ("Cannot do krb5 to an IP address"));
                return NT_STATUS_INVALID_PARAMETER;
        }
-       if (strequal(hostname, "localhost")) {
+       if (strcmp(hostname, "localhost") == 0) {
                DEBUG(2, ("krb5 to 'localhost' does not make sense"));
                return NT_STATUS_INVALID_PARAMETER;
        }