diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-24 09:20:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-11 16:20:31 +0100 |
commit | cd4ae0f7f3d810a44afd184e08c95a89fa35e80c (patch) | |
tree | f6c9684436e1590068897316175680171167955e /source4/librpc/tests | |
parent | ca6da61a52248037fe8a0e747695b3d7525f4647 (diff) | |
download | samba-cd4ae0f7f3d810a44afd184e08c95a89fa35e80c.tar.gz |
s4:librpc/test: an empty hostname means b->host == NULL
In future we'll not allow b->host == "" any more.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/librpc/tests')
-rw-r--r-- | source4/librpc/tests/binding_string.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/tests/binding_string.c b/source4/librpc/tests/binding_string.c index 425b2f83156..fcefd69488d 100644 --- a/source4/librpc/tests/binding_string.c +++ b/source4/librpc/tests/binding_string.c @@ -66,8 +66,9 @@ static bool test_BindingString(struct torture_context *tctx, s2 = dcerpc_binding_string(mem_ctx, b2); torture_assert(tctx, s != NULL, "Error converting binding back to string"); - if (is_ipaddress(b->host)) + if (b->host && is_ipaddress(b->host)) { torture_assert_casestr_equal(tctx, s, s2, "Mismatch while comparing original and from protocol tower generated binding strings"); + } return true; } |