summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-07-08 20:44:57 -0400
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-07-08 20:44:57 -0400
commit8c9bbbae96c247f9c05f085f771d30573e41c687 (patch)
tree7f562803c6509090bdbd5ced716ab14621ac2334 /source3/lib
parent31262a59bcf1cb04631c2efca169e417ef597bec (diff)
parent272690bda864d04e9e95e103393fb51d1affc334 (diff)
downloadsamba-8c9bbbae96c247f9c05f085f771d30573e41c687.tar.gz
samba-8c9bbbae96c247f9c05f085f771d30573e41c687.tar.bz2
samba-8c9bbbae96c247f9c05f085f771d30573e41c687.zip
Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into v3-3-test
(This used to be commit 2dab9ad77954dc608f8910bf4d3cb92fcaad5cb6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index b2a1ece5db..822ff26331 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -365,7 +365,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
{
struct sockaddr_in *sa = (struct sockaddr_in *)ss;
memset(ss, '\0', sizeof(*ss));
- ss->ss_family = AF_INET;
+ sa->sin_family = AF_INET;
sa->sin_addr = ip;
}
@@ -379,7 +379,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
{
struct sockaddr_in6 *sa = (struct sockaddr_in6 *)ss;
memset(ss, '\0', sizeof(*ss));
- ss->ss_family = AF_INET6;
+ sa->sin6_family = AF_INET6;
sa->sin6_addr = ip;
}
#endif