[Home]

Summary:ASTERISK-04271: Context of peer is not set properly
Reporter:mmckernan (mmckernan)Labels:
Date Opened:2005-05-25 08:06:12Date Closed:2011-06-07 14:10:26
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:iax2_call sets a variable called "context" to be AST_MAX_EXTENSION. iax2_call then calls function called create_addr, create_addr then does a ast_copy_string(context, p->context, sizeof(context))

It appears sizeof(context) returns "4" in create_addr, when it should be 80, if AST_MAX_EXTENSION is left as default. I think it might be a memory leak or something...

This causes a problem as transferring calls etc, now fails.
Comments:By: Kevin P. Fleming (kpfleming) 2005-06-05 22:43:36

This code has been entirely reworked in the last 24 hours, so this should no longer be a problem.