summaryrefslogtreecommitdiffstats
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
commit1f81b177182aee7fe24e50ae3cd72d417e81b45a (patch)
tree3bc1eb6c9158c2d908ac50d74e5f75987c677030
parentac21f280d5030a9c49330be37bd754a1540a238a (diff)
downloadsamba-1f81b177182aee7fe24e50ae3cd72d417e81b45a.tar.gz
samba-1f81b177182aee7fe24e50ae3cd72d417e81b45a.tar.xz
samba-1f81b177182aee7fe24e50ae3cd72d417e81b45a.zip
Correct fix for nc problem.
Jeremy.
-rw-r--r--source/smbd/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index e324097d505..372d96e79b4 100644
--- a/source/smbd/process.c
+++ b/source/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);
}