Fix Coverity ID 567
authorVolker Lendecke <vl@samba.org>
Sun, 16 Mar 2008 19:23:44 +0000 (12:23 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 16 Mar 2008 19:23:44 +0000 (12:23 -0700)
Jeremy, please push it if you like it and mark the bug as fixed on the Coverity
site.

Thanks,

Volker

source/lib/util_sock.c

index 2a659438720eead69f56bc9fedef0725b65079b3..65625138ba38789cb73f7da521fa91ff183b921b 100644 (file)
@@ -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;
                }