diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-25 21:59:47 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-25 21:59:47 +0000 |
commit | fd97646dbcfe3148aeb9e6ff94d185a023c521d2 (patch) | |
tree | ecc22ac9740d7ec994f3a5c5ab66ad4b0918808c | |
parent | 76530eb340decf6f949ecaf2f66a0056011314f2 (diff) |
From Didier Gautheron: handle the padding in AFP login packets that put
the password on an even boundary.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6509 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | packet-afp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-afp.c b/packet-afp.c index ed6bca112f..1a27b7e3fb 100644 --- a/packet-afp.c +++ b/packet-afp.c @@ -2,7 +2,7 @@ * Routines for afp packet dissection * Copyright 2002, Didier Gautheron <dgautheron@magic.fr> * - * $Id: packet-afp.c,v 1.24 2002/10/17 22:38:19 guy Exp $ + * $Id: packet-afp.c,v 1.25 2002/10/25 21:59:47 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2060,7 +2060,8 @@ dissect_query_afp_login(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, len = tvb_get_guint8(tvb, offset); proto_tree_add_item(tree, hf_afp_user, tvb, offset, 1,FALSE); offset += len +1; - + if ((offset & 1)) + PAD(1); len = 8; /* tvb_strsize(tvb, offset);*/ proto_tree_add_item(tree, hf_afp_passwd, tvb, offset, len,FALSE); offset += len; |