diff options
author | Jeremy Allison <jra@samba.org> | 2002-08-26 20:29:10 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-08-26 20:29:10 +0000 |
commit | dc40c5fb2dd21adc4939d30679e68ef845c633c1 (patch) | |
tree | 0214c2136859949a17959600541e1ce89b5f21b7 | |
parent | dc0c3e97ca90151460fdcce240de61307b49cf04 (diff) | |
download | samba-dc40c5fb2dd21adc4939d30679e68ef845c633c1.tar.gz samba-dc40c5fb2dd21adc4939d30679e68ef845c633c1.tar.bz2 samba-dc40c5fb2dd21adc4939d30679e68ef845c633c1.zip |
Correct fix for nc problem.
Jeremy.
(This used to be commit 1f81b177182aee7fe24e50ae3cd72d417e81b45a)
-rw-r--r-- | source3/smbd/process.c | 3 |
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); } |