diff options
author | Gerald Carter <jerry@samba.org> | 2003-04-11 14:29:19 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-04-11 14:29:19 +0000 |
commit | 1da829be47a8b291924acc9f2346950744d690ab (patch) | |
tree | 53c1f2f7fd3328f50e6c0df1c99818fcfe07ed8f /source3 | |
parent | 274b7650447f3580ba78e36a87f1cd88718c2032 (diff) | |
download | samba-1da829be47a8b291924acc9f2346950744d690ab.tar.gz samba-1da829be47a8b291924acc9f2346950744d690ab.tar.bz2 samba-1da829be47a8b291924acc9f2346950744d690ab.zip |
workaround streams leak on SCO openserver 5.0.x
(This used to be commit 31eaf11d2e9c38e0f479b41c00e0db92987ae6d0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sock.c | 4 |
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)); + } } } } |