summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-04-06 10:06:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:27 -0500
commit567a74690c9536f464844d647b9fe21ca56b53f3 (patch)
treee2da94aff29ba6b294b8113bdf41f8851c42942e /source4
parent66a3750b142cbf54bfb7318ac4e1831f3d491793 (diff)
downloadsamba-567a74690c9536f464844d647b9fe21ca56b53f3.tar.gz
samba-567a74690c9536f464844d647b9fe21ca56b53f3.tar.bz2
samba-567a74690c9536f464844d647b9fe21ca56b53f3.zip
r6222: fixed the socket wrapper code for getsockname()
(This used to be commit 11e245a3f0e1523eba3a042db140dec8732aa985)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/socket_wrapper/socket_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket_wrapper/socket_wrapper.c b/source4/lib/socket_wrapper/socket_wrapper.c
index b7b0aa07b6..4814f6c929 100644
--- a/source4/lib/socket_wrapper/socket_wrapper.c
+++ b/source4/lib/socket_wrapper/socket_wrapper.c
@@ -321,7 +321,7 @@ int swrap_getsockname(int s, struct sockaddr *name, socklen_t *addrlen)
struct socket_info *si = find_socket_info(s);
if (!si) {
- return real_getpeername(s, name, addrlen);
+ return real_getsockname(s, name, addrlen);
}
memcpy(name, si->myname, si->myname_len);