r2978: Fix #1926 typo in debug. Found by Bill McGonigle <bill+samba@bfccomputing...
authorJeremy Allison <jra@samba.org>
Thu, 14 Oct 2004 22:30:33 +0000 (22:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:58 +0000 (10:52 -0500)
Jeremy.

source/lib/util_sock.c

index 4b9881a4499bf478e9b4bd0122844afa2dae6f81..8c16533bf96e0923a14756169ef3f02a85b3398c 100644 (file)
@@ -43,7 +43,7 @@ static char *get_socket_addr(int fd)
        }
        
        if (getsockname(fd, &sa, &length) < 0) {
        }
        
        if (getsockname(fd, &sa, &length) < 0) {
-               DEBUG(0,("getpeername failed. Error was %s\n", strerror(errno) ));
+               DEBUG(0,("getsockname failed. Error was %s\n", strerror(errno) ));
                return addr_buf;
        }
        
                return addr_buf;
        }