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:
parent
7061524f79
commit
2f3a371613
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue