diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-07-23 06:37:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-07-23 06:37:58 +0000 |
commit | 267b501cae8bfa5e614ed05179422dd5acae86d0 (patch) | |
tree | ddd44bda4c3d795d8d330e524738aea648ba9999 /epan/dissectors | |
parent | f28323ba39027c4fbd571f7c5c2077ae439b822c (diff) |
"iax_lookup_circuit_details()" can return null; check whether it's null
before using it.
svn path=/trunk/; revision=11477
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-iax2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c index 6277a1922a..a2a479965b 100644 --- a/epan/dissectors/packet-iax2.c +++ b/epan/dissectors/packet-iax2.c @@ -1307,10 +1307,12 @@ static iax_packet_data *iax2_get_packet_data_for_minipacket(packet_info * pinfo, p_add_proto_data(pinfo->fd,proto_iax2,p); /* set the codec for this frame to be whatever the last full frame used */ - if( video ) - p->codec = reversed ? iax_call -> dst_vformat : iax_call -> src_vformat; - else - p->codec = reversed ? iax_call -> dst_codec : iax_call -> src_codec; + if( iax_call ) { + if( video ) + p->codec = reversed ? iax_call -> dst_vformat : iax_call -> src_vformat; + else + p->codec = reversed ? iax_call -> dst_codec : iax_call -> src_codec; + } } return p; } |