diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-12 14:17:55 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-12 14:17:55 +0000 |
commit | 60575a888aebec898fdaf0f6c0c8269607b2571f (patch) | |
tree | b496d7a8986f5c1eb31395025d10ea4a91099219 /source3/smbparse.c | |
parent | a26037ac7c1ac218863f9d674dcf85293eb2f085 (diff) | |
download | samba-60575a888aebec898fdaf0f6c0c8269607b2571f.tar.gz samba-60575a888aebec898fdaf0f6c0c8269607b2571f.tar.bz2 samba-60575a888aebec898fdaf0f6c0c8269607b2571f.zip |
ipc.c:
debugging info. found that data = NULL because of short packet length
indicated from the ntlsaRPC pipe _royally_ stuffs NT's packet handling.
maybe this should go down as a service denial bug to the ntbugtraq list.
pipes.c lsaparse.c smbparse.c :
added more debug stuff. added length of header to data_len in MSRPC
fragment_length field (0x18 bytes short) which caused the above bug
from NT 4.0. oops.
(This used to be commit a6f8de6815e0b85bb23b302980730501ac0b87e5)
Diffstat (limited to 'source3/smbparse.c')
-rw-r--r-- | source3/smbparse.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbparse.c b/source3/smbparse.c index 01438281ef..0c016c17d9 100644 --- a/source3/smbparse.c +++ b/source3/smbparse.c @@ -410,13 +410,16 @@ char* smb_io_rpc_hdr(BOOL io, RPC_HDR *rpc, char *q, char *base, int align) /******************************************************************* reads or writes an LSA_POL_HND structure. ********************************************************************/ -char* smb_io_pol_hnd(BOOL io, LSA_POL_HND *pol, char *q, char *base, int align) +char* smb_io_pol_hnd(BOOL io, LSA_POL_HND *pol, char *q, char *base, int align, int depth) { if (pol == NULL) return NULL; + DEBUG(5,("%ssmb_io_pol_hnd\n", tab_depth(depth))); + depth++; + q = align_offset(q, base, align); - RW_PCVAL(io, q, pol->data, POL_HND_SIZE); q += POL_HND_SIZE; + DBG_RW_PCVAL("data", depth, base, io, q, pol->data, POL_HND_SIZE); q += POL_HND_SIZE; return q; } |