From d9ca09b8b45106825bdba49fcd9e5159f0e38af3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Sep 2005 23:23:03 +0000 Subject: r10370: only validate the re-generated binding string for hostnames with IPs Jelmer, can you see a better approach to this? As far as I am aware protocol towers don't use hostnames, they always use IP addresses (This used to be commit 7a3ec95d9911e8c0a278f5a94513e4fd61979eab) --- source4/torture/local/binding_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture') diff --git a/source4/torture/local/binding_string.c b/source4/torture/local/binding_string.c index 79d1e89ed6..827eb6c585 100644 --- a/source4/torture/local/binding_string.c +++ b/source4/torture/local/binding_string.c @@ -82,7 +82,7 @@ static BOOL test_BindingString(TALLOC_CTX *mem_ctx, const char *binding) return False; } - if (strcasecmp(s, s2) != 0) { + if (is_ipaddress(b->host) && strcasecmp(s, s2) != 0) { DEBUG(0, ("Mismatch while comparing original and from protocol tower generated binding strings: '%s' <> '%s'\n", s, s2)); return False; } -- cgit