diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-10-24 10:18:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-10-24 10:18:16 +0000 |
commit | b24848590579375cdea2427bcae7738639f1a804 (patch) | |
tree | c07824798ef4a69e602f25141262860a6dce9620 /epan/dissectors/packet-bootp.c | |
parent | 97a6dc74e70243b8b4997359b67a93198c991d0c (diff) |
Fix the length used for the name in the FQDN option.
svn path=/trunk/; revision=12383
Diffstat (limited to 'epan/dissectors/packet-bootp.c')
-rw-r--r-- | epan/dissectors/packet-bootp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c index 67f4af01b4..4d0ffa1c3c 100644 --- a/epan/dissectors/packet-bootp.c +++ b/epan/dissectors/packet-bootp.c @@ -891,11 +891,11 @@ bootp_option(tvbuff_t *tvb, proto_tree *bp_tree, int voff, int eoff, if (fqdn_flags & F_FQDN_E) { /* XXX: use code from packet-dns for binary encoded name */ proto_tree_add_item(v_tree, hf_bootp_fqdn_name, tvb, voff+5, - vlen-5, FALSE); + vlen-3, FALSE); } else { proto_tree_add_item(v_tree, hf_bootp_fqdn_asciiname, tvb, voff+5, - vlen-5, FALSE); + vlen-3, FALSE); } break; |