summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
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
commit97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104 (patch)
treead8799f86a73d9a0af765500035741880f537510 /source/lib/util.c
parentc7f09ffd4a00ef7266e3f54536ee6aaca9335fb8 (diff)
downloadsamba-97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104.tar.gz
samba-97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104.tar.xz
samba-97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104.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).
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 3317efb8041..01e2dae154c 100644
--- a/source/lib/util.c
+++ b/source/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