From: Volker Lendecke Date: Sun, 16 Mar 2008 19:23:44 +0000 (-0700) Subject: Fix Coverity ID 567 X-Git-Tag: samba-3.3.0pre1~3295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fd25423700cb60f20a8b8d6613279cb06fb518d;p=thirdparty%2Fsamba.git Fix Coverity ID 567 Jeremy, please push it if you like it and mark the bug as fixed on the Coverity site. Thanks, Volker --- diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index 2a659438720..65625138ba3 100644 --- a/source/lib/util_sock.c +++ b/source/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; }