diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-25 21:59:47 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-25 21:59:47 +0000 |
commit | 86af47dd68245055354fa1b9eac58fb2b0159193 (patch) | |
tree | ecc22ac9740d7ec994f3a5c5ab66ad4b0918808c /packet-afp.c | |
parent | a9b42ee36c93a427e0892ef9bd88e806fc47183f (diff) |
From Didier Gautheron: handle the padding in AFP login packets that put
the password on an even boundary.
svn path=/trunk/; revision=6509
Diffstat (limited to 'packet-afp.c')
-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; |