From 5d7c8375e4ffb017ef0f9eed7e619e533b3e8d12 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 24 Mar 1998 00:37:53 +0000 Subject: clientgen.c ipc.c smbpasswd.c: Fixes for warnings (from Herb). quotas.c: Linux quota fix. util.c: Ensure smb_read_error is zero in all calls that can set it. lib/rpc/include/rpc_misc.h lib/rpc/include/rpc_netlogon.h lib/rpc/parse/parse_misc.c lib/rpc/parse/parse_net.c lib/rpc/server/srv_netlog.c : Modify Luke's code to call SamOEMhash(). Jeremy. (This used to be commit 7f749708383b8b36c3f23a5fbc5cbdf39bc8e555) --- source3/lib/util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 306e80c307..2d3f8cc916 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -2492,6 +2492,8 @@ BOOL receive_local_message(int fd, char *buffer, int buffer_len, int timeout) int fromlen = sizeof(from); int32 msg_len = 0; + smb_read_error = 0; + if(timeout != 0) { struct timeval to; @@ -2643,6 +2645,8 @@ BOOL receive_message_or_smb(int smbfd, int oplock_fd, int selrtn; struct timeval to; + smb_read_error = 0; + *got_smb = False; /* -- cgit