diff options
author | tpot <tpot@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-11-02 03:55:32 +0000 |
---|---|---|
committer | tpot <tpot@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-11-02 03:55:32 +0000 |
commit | 25a653e0acc9f8307cb931853311827bf79ff65a (patch) | |
tree | d649781b694dbc73f0627d30fb615b397e0a9c09 /packet-dcerpc-netlogon.c | |
parent | 3ac63ea4c9d14414d3beab2fd3a81bd541ff26b4 (diff) |
In a secure channel verifier, sometimes the nonce isn't present; not sure
why this is so.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8856 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-dcerpc-netlogon.c')
-rw-r--r-- | packet-dcerpc-netlogon.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/packet-dcerpc-netlogon.c b/packet-dcerpc-netlogon.c index f6c0d6a184..7c9c9708a0 100644 --- a/packet-dcerpc-netlogon.c +++ b/packet-dcerpc-netlogon.c @@ -3,7 +3,7 @@ * Copyright 2001,2003 Tim Potter <tpot@samba.org> * 2002 structure and command dissectors by Ronnie Sahlberg * - * $Id: packet-dcerpc-netlogon.c,v 1.94 2003/10/23 04:57:46 guy Exp $ + * $Id: packet-dcerpc-netlogon.c,v 1.95 2003/11/02 03:55:32 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -6189,22 +6189,27 @@ dissect_secchan_verf(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, vf = proto_tree_add_item(tree, hf_netlogon_secchan_verf, tvb, offset, -1, FALSE); subtree = proto_item_add_subtree(vf, ett_secchan_verf); - + proto_tree_add_item(subtree, hf_netlogon_secchan_verf_sig, tvb, offset, 8, FALSE); offset += 8; - + proto_tree_add_item(subtree, hf_netlogon_secchan_verf_unk, tvb, offset, 8, FALSE); offset += 8; - + proto_tree_add_item(subtree, hf_netlogon_secchan_verf_seq, tvb, offset, 8, FALSE); offset += 8; - - proto_tree_add_item(subtree, hf_netlogon_secchan_verf_nonce, tvb, - offset, 8, FALSE); - offset += 8; + + /* In some cases the nonce isn't present although it isn't clear + why this is so. */ + + if (tvb_bytes_exist(tvb, offset, 8)) { + proto_tree_add_item(subtree, hf_netlogon_secchan_verf_nonce, + tvb, offset, 8, FALSE); + offset += 8; + } return offset; } |