From dc40c5fb2dd21adc4939d30679e68ef845c633c1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 26 Aug 2002 20:29:10 +0000 Subject: Correct fix for nc problem. Jeremy. (This used to be commit 1f81b177182aee7fe24e50ae3cd72d417e81b45a) --- source3/smbd/process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index e324097d50..372d96e79b 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -655,7 +655,8 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize /* Make sure this is an SMB packet */ if (strncmp(smb_base(inbuf),"\377SMB",4) != 0) { - DEBUG(2,("Non-SMB packet of length %d\n",smb_len(inbuf))); + DEBUG(2,("Non-SMB packet of length %d. Terminating server\n",smb_len(inbuf))); + exit_server("Non-SMB packet"); return(-1); } -- cgit