]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
syntax v9.3.5-P2-W2
authorMark Andrews <marka@isc.org>
Thu, 11 Sep 2008 04:10:49 +0000 (04:10 +0000)
committerMark Andrews <marka@isc.org>
Thu, 11 Sep 2008 04:10:49 +0000 (04:10 +0000)
lib/isc/win32/socket.c

index 1f8333b4005aab4e6b06fb61e41a725c4becbbf8..561a7a5aa2cf98d54ee745c3ab810854d3ddec0c 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: socket.c,v 1.5.2.13.2.24.4.6.4.4 2008/09/11 04:04:10 marka Exp $ */
+/* $Id: socket.c,v 1.5.2.13.2.24.4.6.4.5 2008/09/11 04:10:49 marka Exp $ */
 
 /* This code uses functions which are only available on Server 2003 and
  * higher, and Windows XP and higher.
@@ -3265,8 +3265,8 @@ isc_socket_connect(isc_socket_t *sock, isc_sockaddr_t *addr,
        if (!sock->bound) {
                isc_sockaddr_t any;
 
-               isc_sockaddr_anyofpf(&any, isc_sockaddr_pf(sock));
-               if (bind(sock->fd, &any->type.sa, any->length) < 0) {
+               isc_sockaddr_anyofpf(&any, isc_sockaddr_pf(addr));
+               if (bind(sock->fd, &any.type.sa, any.length) < 0) {
                        bind_errno = WSAGetLastError();
                        UNLOCK(&sock->lock);
                        switch (bind_errno) {