aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
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 /asn1
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 'asn1')
-rw-r--r--asn1/h245/packet-h245-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/h245/packet-h245-template.c b/asn1/h245/packet-h245-template.c
index 05af9cafb6..55581f871f 100644
--- a/asn1/h245/packet-h245-template.c
+++ b/asn1/h245/packet-h245-template.c
@@ -278,7 +278,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);
}