mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Ensure that frame dumps of AST_CONTROL_T38_PARAMETERS frames are properly
decoded. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@215161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -840,7 +840,7 @@ void ast_frame_dump(const char *name, struct ast_frame *f, char *prefix)
|
|||||||
strcpy(subclass, "Unhold");
|
strcpy(subclass, "Unhold");
|
||||||
break;
|
break;
|
||||||
case AST_CONTROL_T38_PARAMETERS:
|
case AST_CONTROL_T38_PARAMETERS:
|
||||||
if (f->datalen != sizeof(struct ast_control_t38_parameters *)) {
|
if (f->datalen != sizeof(struct ast_control_t38_parameters)) {
|
||||||
message = "Invalid";
|
message = "Invalid";
|
||||||
} else {
|
} else {
|
||||||
struct ast_control_t38_parameters *parameters = f->data.ptr;
|
struct ast_control_t38_parameters *parameters = f->data.ptr;
|
||||||
|
Reference in New Issue
Block a user