summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-11 14:18:02 +0000
committerGerald Carter <jerry@samba.org>2003-04-11 14:18:02 +0000
commit40b85808a20bcfcd6c1a867283698b7f63a531f5 (patch)
treeedb4c47cab4f5aed38ec339a819fd570bc345b83 /source3/lib
parent5c6fde8eb1779cf2baf9b4eb90e09841b72bdb1f (diff)
downloadsamba-40b85808a20bcfcd6c1a867283698b7f63a531f5.tar.gz
samba-40b85808a20bcfcd6c1a867283698b7f63a531f5.tar.bz2
samba-40b85808a20bcfcd6c1a867283698b7f63a531f5.zip
workaround streams leak on SCO openserver 5.0.x
(This used to be commit ab51878a978ffb53f23f1c6d22a48f98e6ae0805)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 42527e8fd0..5460bf57b8 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -95,11 +95,15 @@ static void print_socket_options(int s)
int value, vlen = 4;
const smb_socket_option *p = &socket_options[0];
+ /* wrapped in if statement to prevent streams leak in SCO Openserver 5.0 */
+ /* reported on samba-technical --jerry */
+ if ( DEBUGLEVEL >= 5 ) {
for (; p->name != NULL; p++) {
if (getsockopt(s, p->level, p->option, (void *)&value, &vlen) == -1) {
DEBUG(5,("Could not test socket option %s.\n", p->name));
} else {
DEBUG(5,("socket option %s = %d\n",p->name,value));
+ }
}
}
}