In dissect_h245_OpenLogicalChannelCodec(), make sure codec_type exists before

trying to access its contents.

svn path=/trunk/; revision=14072
This commit is contained in:
Gerald Combs 2005-04-14 04:26:00 +00:00
parent 7061524f79
commit 2f3a371613
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}