aboutsummaryrefslogtreecommitdiffstats
path: root/packet-afp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-25 21:59:47 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-25 21:59:47 +0000
commit86af47dd68245055354fa1b9eac58fb2b0159193 (patch)
treeecc22ac9740d7ec994f3a5c5ab66ad4b0918808c /packet-afp.c
parenta9b42ee36c93a427e0892ef9bd88e806fc47183f (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.c5
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;