diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sock.c | 4 | ||||
-rwxr-xr-x | source3/script/tests/test_net_registry.sh | 4 |
2 files changed, 4 insertions, 4 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 diff --git a/source3/script/tests/test_net_registry.sh b/source3/script/tests/test_net_registry.sh index b6d27970cc..0f29b25019 100755 --- a/source3/script/tests/test_net_registry.sh +++ b/source3/script/tests/test_net_registry.sh @@ -402,7 +402,7 @@ testit "delete^2 key" \ testit "enumerate nonexisting key" \ test_enumerate_nonexisting HKLM/testkey || \ - failed=`expr $failed +1` + failed=`expr $failed + 1` testit "create key with subkey" \ test_createkey_with_subkey HKLM/testkey/subkey || \ @@ -435,7 +435,7 @@ testit "delete key with value" \ if test "x${RPC}" = "xrpc" ; then testit "taking administrative rights from user ${USERNAME}" \ take_administrative_rights || \ - failed=`expr $failed +1` + failed=`expr $failed + 1` fi testok $0 $failed |