diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-04-14 04:26:00 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-04-14 04:26:00 +0000 |
commit | 2f3a3716131816e735a451d706fe617db0f917e6 (patch) | |
tree | ce722faa29ab7ec2f6a7c050bb2ed5bf7316b9f6 /epan/dissectors/packet-h245.c | |
parent | 7061524f7930c3aa526932fb2a3f9a87085c0408 (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.c | 2 |
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); } |