aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h245.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-14 04:26:00 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-14 04:26:00 +0000
commit2f3a3716131816e735a451d706fe617db0f917e6 (patch)
treece722faa29ab7ec2f6a7c050bb2ed5bf7316b9f6 /epan/dissectors/packet-h245.c
parent7061524f7930c3aa526932fb2a3f9a87085c0408 (diff)
In dissect_h245_OpenLogicalChannelCodec(), make sure codec_type exists before
trying to access its contents. svn path=/trunk/; revision=14072
Diffstat (limited to 'epan/dissectors/packet-h245.c')
-rw-r--r--epan/dissectors/packet-h245.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-h245.c b/epan/dissectors/packet-h245.c
index ed49ad0039..c8045cfcd7 100644
--- a/epan/dissectors/packet-h245.c
+++ b/epan/dissectors/packet-h245.c
@@ -16376,7 +16376,7 @@ dissect_h245_OpenLogicalChannelCodec(tvbuff_t *tvb, int offset, packet_info *pin
if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChn;
- if (codec_str){
+ if (codec_str && codec_type){
strncpy(codec_str, codec_type, 50);
}