summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-08-26 20:29:10 +0000
committerJeremy Allison <jra@samba.org>2002-08-26 20:29:10 +0000
commitdc40c5fb2dd21adc4939d30679e68ef845c633c1 (patch)
tree0214c2136859949a17959600541e1ce89b5f21b7 /source3/smbd
parentdc0c3e97ca90151460fdcce240de61307b49cf04 (diff)
downloadsamba-dc40c5fb2dd21adc4939d30679e68ef845c633c1.tar.gz
samba-dc40c5fb2dd21adc4939d30679e68ef845c633c1.tar.bz2
samba-dc40c5fb2dd21adc4939d30679e68ef845c633c1.zip
Correct fix for nc problem.
Jeremy. (This used to be commit 1f81b177182aee7fe24e50ae3cd72d417e81b45a)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c3
1 files changed, 2 insertions, 1 deletions
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);
}