diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-08-15 11:39:13 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-08-15 11:39:13 +0000 |
commit | 0ce65dfeb3d977ab3b21f8a741d51285718e947c (patch) | |
tree | a99900d948d4928128cbba4908bfeee3131a5fd4 /epan/dissectors/packet-dhcp-failover.c | |
parent | 03f15754d3f017c1ef03671f1fbcd9921cd66405 (diff) |
Make message_digest_type a guint16. Removed cast.
Spotted by Ulf Lamping.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11742 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dhcp-failover.c')
-rw-r--r-- | epan/dissectors/packet-dhcp-failover.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dhcp-failover.c b/epan/dissectors/packet-dhcp-failover.c index 20c00ce73a..3de899eeb9 100644 --- a/epan/dissectors/packet-dhcp-failover.c +++ b/epan/dissectors/packet-dhcp-failover.c @@ -343,7 +343,8 @@ dissect_dhcpfo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint additionalHBlength; struct payloadMessage *helpliste; int actualoffset; - guint8 htype, reject_reason, message_digest_type; + guint8 htype, reject_reason; + guint16 message_digest_type; const guint8 *chaddr; guint8 binding_status; gchar *binding_status_str, *reject_reason_str; @@ -835,7 +836,7 @@ dissect_dhcpfo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case DHCP_FO_PD_MESSAGE_DIGEST: - message_digest_type = (guint8) tvb_get_ntohs(tvb,helpliste->actualpoffset+4); + message_digest_type = tvb_get_ntohs(tvb,helpliste->actualpoffset+4); if(message_digest_type == 1) { proto_item_append_text(oi, ", HMAC-MD5"); |