summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 2a65943872..65625138ba 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -63,7 +63,7 @@ bool is_ipaddress(const char *str)
sizeof(addr)));
sp = addr;
}
- ret = inet_pton(AF_INET6, addr, &dest6);
+ ret = inet_pton(AF_INET6, sp, &dest6);
if (ret > 0) {
return true;
}