summaryrefslogtreecommitdiff
path: root/source4/torture/local
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-20 23:23:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:32 -0500
commitd9ca09b8b45106825bdba49fcd9e5159f0e38af3 (patch)
tree698ea6da9cac3abb5e53ab6bcddcbe671a3f3881 /source4/torture/local
parent344b0d640d83dc93146c8252e2841acba4f87891 (diff)
downloadsamba-d9ca09b8b45106825bdba49fcd9e5159f0e38af3.tar.gz
samba-d9ca09b8b45106825bdba49fcd9e5159f0e38af3.tar.bz2
samba-d9ca09b8b45106825bdba49fcd9e5159f0e38af3.zip
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)
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/binding_string.c2
1 files changed, 1 insertions, 1 deletions
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;
}