From 1da829be47a8b291924acc9f2346950744d690ab Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 11 Apr 2003 14:29:19 +0000 Subject: workaround streams leak on SCO openserver 5.0.x (This used to be commit 31eaf11d2e9c38e0f479b41c00e0db92987ae6d0) --- source3/lib/util_sock.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/util_sock.c') 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)); + } } } } -- cgit