diff options
author | Martin Pool <mbp@samba.org> | 2001-11-14 05:33:55 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-11-14 05:33:55 +0000 |
commit | e6093a12a13551068a58843da828787e837c08ab (patch) | |
tree | f2222d74b756663cdd83206778f7895da42a2781 | |
parent | 0b5cea7fc2b5e819b5297072f038cbc51f6f6195 (diff) | |
download | samba-e6093a12a13551068a58843da828787e837c08ab.tar.gz samba-e6093a12a13551068a58843da828787e837c08ab.tar.bz2 samba-e6093a12a13551068a58843da828787e837c08ab.zip |
#ifdef'd out suggestion for tim on making the winbindd protocol more
robust.
(This used to be commit 8952f8763e16339e58bc65943387a00fc89dc200)
-rw-r--r-- | source3/nsswitch/winbindd.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 6013a53eb6..5231c840ba 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -4,7 +4,7 @@ Winbind daemon for ntdom nss module - Copyright (C) Tim Potter 2000 + Copyright (C) by Tim Potter 2000, 2001 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -610,6 +610,18 @@ static void process_loop(int accept_sock) /* Read data */ client_read(state); + +#if 0 + /* If we have the start of a + * packet, then check the + * length field to make sure + * the client's not talking + * Mock Swedish. */ + if (state->read_buf_len >= sizeof(int) + && *(int *) state->buf != sizeof(state->request)) { + BORK_BORK_BORK(); + } +#endif /* A request packet might be complete */ |