git.samba.org
/
obnox
/
cwrap
/
resolv_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5333c
)
tests: Fix test_res_ninit() with IPv4 only support.
author
Andreas Schneider
<asn@samba.org>
Thu, 23 Oct 2014 05:51:04 +0000
(07:51 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 23 Oct 2014 12:21:55 +0000
(14:21 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
tests/test_res_init.c
patch
|
blob
|
history
diff --git
a/tests/test_res_init.c
b/tests/test_res_init.c
index da394357771199d25f8d96b5b217c162f11e67c3..e42b8a4ac8dbdd515fb1ab55fd07d03d4f5c1e39 100644
(file)
--- a/
tests/test_res_init.c
+++ b/
tests/test_res_init.c
@@
-162,7
+162,7
@@
static void test_res_ninit(void **state)
assert_int_equal(dnsstate.nsaddr_list[2].sin_port, htons(53));
inet_ntop(AF_INET, &(dnsstate.nsaddr_list[2].sin_addr),
straddr, INET6_ADDRSTRLEN);
- assert_string_equal(nameservers[
2
], straddr);
+ assert_string_equal(nameservers[
3
], straddr);
#else
/* IPv6 */
sa6 = dnsstate._u._ext.nsaddrs[0];