summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2008-04-07 11:22:14 +0200
committerVolker Lendecke <vl@samba.org>2008-04-07 11:49:54 +0200
commitb6e9fffaa2cdb45533cf8fd751a4a857124e5a2c (patch)
treead73630c41651aeff4cbb9a9bdb0b646f0ac4b0e /source3
parent768a5a23e001411d26fc293624b9ab2002a90b65 (diff)
downloadsamba-b6e9fffaa2cdb45533cf8fd751a4a857124e5a2c.tar.gz
samba-b6e9fffaa2cdb45533cf8fd751a4a857124e5a2c.tar.bz2
samba-b6e9fffaa2cdb45533cf8fd751a4a857124e5a2c.zip
increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection.
(This used to be commit 42bc4ff7fd6bfc92bde015ae8f3a9fb62d443cd5)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_sock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 30a3b83be7..f252377b7e 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -837,7 +837,10 @@ void set_socket_options(int fd, const char *options)
}
if (ret != 0) {
- DEBUG(0,("Failed to set socket option %s (Error %s)\n",
+ /* be aware that some systems like Solaris return
+ * EINVAL to a setsockopt() call when the client
+ * sent a RST previously - no need to worry */
+ DEBUG(2,("Failed to set socket option %s (Error %s)\n",
tok, strerror(errno) ));
}
}