summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-10-03 20:36:06 +0000
committerJeremy Allison <jra@samba.org>1997-10-03 20:36:06 +0000
commit2f7b04061e61df7dcc1029b71fe12ca4dfca5f10 (patch)
tree332e217c0435dba1ace5bef198d69443c2e48e68 /source3/lib
parent2534e0688ba703423c9d18b3296b00c097aa351d (diff)
downloadsamba-2f7b04061e61df7dcc1029b71fe12ca4dfca5f10.tar.gz
samba-2f7b04061e61df7dcc1029b71fe12ca4dfca5f10.tar.bz2
samba-2f7b04061e61df7dcc1029b71fe12ca4dfca5f10.zip
locking.c: Fixed incorrect parameter count in debug statements. May explain
solaris crashes. reply.c: Added NT specific error code. Put oplock break code in correct place in reply_lockingX. server.c: Removed unneeded error mapping stuff. Fixed race condition in oplock code. trans2.c: Added NT specific error code. util.c: Added paranoia check in interpret_addr. Some core dumps reported here. Upped fcntl debug levels. Andrew. Please check the NT specific error code handling (search for the string "/* Ugly - NT specific hack - but needed (JRA) */", this makes NT and 95 clients behave correctly here - please check your Visual Basic apps with this code. Jeremy (jallison@whistle.com). (This used to be commit 97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 3317efb804..01e2dae154 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3415,6 +3415,10 @@ uint32 interpret_addr(char *str)
DEBUG(3,("Get_Hostbyname: Unknown host. %s\n",str));
return 0;
}
+ if(hp->h_addr == NULL) {
+ DEBUG(3,("Get_Hostbyname: host address is invalid for host %s.\n",str));
+ return 0;
+ }
putip((char *)&res,(char *)hp->h_addr);
}
@@ -4033,7 +4037,7 @@ BOOL fcntl_lock(int fd,int op,uint32 offset,uint32 count,int type)
#endif
- DEBUG(5,("fcntl_lock %d %d %d %d %d\n",fd,op,(int)offset,(int)count,type));
+ DEBUG(8,("fcntl_lock %d %d %d %d %d\n",fd,op,(int)offset,(int)count,type));
lock.l_type = type;
lock.l_whence = SEEK_SET;
@@ -4081,7 +4085,7 @@ BOOL fcntl_lock(int fd,int op,uint32 offset,uint32 count,int type)
}
/* everything went OK */
- DEBUG(5,("Lock call successful\n"));
+ DEBUG(8,("Lock call successful\n"));
return(True);
#else