git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9141 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-23 13:45:35 +00:00
parent 13d880e923
commit dc9133ef28
1 changed files with 4 additions and 3 deletions

View File

@ -486,11 +486,12 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
clen = atoi(val);
if (clen > 0) {
char *body = malloc(clen + 1);
char *ptr = body;
char *body;
char *ptr;
switch_assert(body);
switch_zmalloc(body, clen + 1);
ptr = body;
while(clen > 0) {
mlen = clen;