DNS: fix Coverity CID 281285 and CID 1238867

Change-Id: Ia5747a5d0c8c63b7471de624c96e546c7bbfbf57
Reviewed-on: https://code.wireshark.org/review/5064
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Pascal Quantin 2014-11-02 12:17:58 +01:00 committed by Michael Mann
parent c49c775087
commit f19c70c952
1 changed files with 2 additions and 0 deletions

View File

@ -1140,6 +1140,7 @@ expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset,
case 0x80:
THROW(ReportedBoundsError);
break;
case 0xc0:
/* Pointer. */
@ -3145,6 +3146,7 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
proto_tree_add_item(rr_tree, hf_dns_openpgpkey, tvb, cur_offset, data_len, ENC_ASCII|ENC_NA);
}
break;
case T_SPF: /* Sender Policy Framework (99) */
{