git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Fix a pointless error check
[nivanova/samba-autobuild/.git]
/
source4
/
lib
/
socket
/
socket_ip.c
diff --git
a/source4/lib/socket/socket_ip.c
b/source4/lib/socket/socket_ip.c
index d531053add354befe633a1a06935b6fbc471bd10..6ec525265a75b32b70eb67ea77b1017bb2f2b01a 100644
(file)
--- a/
source4/lib/socket/socket_ip.c
+++ b/
source4/lib/socket/socket_ip.c
@@
-861,7
+861,8
@@
static NTSTATUS ipv6_sendto(struct socket_context *sock,
ZERO_STRUCT(srv_addr);
addr = interpret_addr6(dest_addr->addr);
- if (addr.s6_addr == 0) {
+ if (memcmp(&addr.s6_addr, &in6addr_any,
+ sizeof(addr.s6_addr)) == 0) {
return NT_STATUS_HOST_UNREACHABLE;
}
srv_addr.sin6_addr = addr;