Bug 1926 - getsockname DEBUG written getpeername
getsockname DEBUG written getpeername
Product: Samba 3.0
Classification: Unclassified
Component: File Services
All All
: P3 minor
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-10-13 13:12 UTC by Bill McGonigle
Modified: 2005-08-24 10:27 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Bill McGonigle 2004-10-13 13:12:55 UTC
When looking through the source for a getpeername error I found a line in
source/lib/util_sock.c (line 46 on my copy) that looks like:

static char *get_socket_addr(int fd)
	if (getsockname(fd, &sa, &length) < 0) {
		DEBUG(0,("getpeername failed. Error was %s\n", strerror(errno) ));
		return addr_buf;

Ought the DEBUG read 'getsockname failed'?
Comment 1 Jeremy Allison 2004-10-14 15:29:08 UTC
Applied, thanks.
Comment 2 Gerald (Jerry) Carter 2005-02-07 07:57:34 UTC
originally reported against 3.0aph24.  Bugzilla spring cleaning.  
Removing old alpha versions.
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:27:18 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.