diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-03-07 04:33:46 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-03-07 04:33:46 +0000 |
commit | 0cfdbc3676c49f5d0415653094453ed378085c86 (patch) | |
tree | ea91d012e003982c67be4ae2a6f3e90bb1d13e5a | |
parent | 6e04b0aadbd2c731eb9a2abf7cac6fffae2b4c34 (diff) |
- contsify a variable in packet-alcap.c to see if a fake bug reported by coverty goes away.
- fix an off by one error in packet-telnet.c reported by coverty
svn path=/trunk/; revision=17487
-rw-r--r-- | epan/dissectors/packet-alcap.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-telnet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-alcap.c b/epan/dissectors/packet-alcap.c index 1f1e6b340d..303f846965 100644 --- a/epan/dissectors/packet-alcap.c +++ b/epan/dissectors/packet-alcap.c @@ -1373,7 +1373,7 @@ static void dissect_alcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { int offset; proto_item* pi; proto_tree* compat_tree; - alcap_msg_type_info_t* msg_type; + const alcap_msg_type_info_t* msg_type; if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, alcap_proto_name_short); diff --git a/epan/dissectors/packet-telnet.c b/epan/dissectors/packet-telnet.c index 3dd7797ca7..2c39500557 100644 --- a/epan/dissectors/packet-telnet.c +++ b/epan/dissectors/packet-telnet.c @@ -1288,7 +1288,7 @@ telnet_will_wont_do_dont(proto_tree *telnet_tree, tvbuff_t *tvb, offset += 2; /* skip IAC and WILL,WONT,DO,DONT} */ opt_byte = tvb_get_guint8(tvb, offset); - if (opt_byte > NOPTIONS) + if (opt_byte >= NOPTIONS) opt = "<unknown option>"; else opt = options[opt_byte].name; |