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 | 1f81b177182aee7fe24e50ae3cd72d417e81b45a (patch) | |
tree | 3bc1eb6c9158c2d908ac50d74e5f75987c677030 | |
parent | ac21f280d5030a9c49330be37bd754a1540a238a (diff) | |
download | samba-1f81b177182aee7fe24e50ae3cd72d417e81b45a.tar.gz samba-1f81b177182aee7fe24e50ae3cd72d417e81b45a.tar.xz samba-1f81b177182aee7fe24e50ae3cd72d417e81b45a.zip |
Correct fix for nc problem.
Jeremy.
-rw-r--r-- | source/smbd/process.c | 3 |
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); } |