dect
/
asterisk
Archived
13
0
Fork 0

bail if ast_calloc fails, this was done before but i accidently removed it when

moving these allocations so duplicate error messages were not produced
(issue #7345)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34663 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2006-06-18 21:24:35 +00:00
parent 4dd4cc3eec
commit afea7adc1c
1 changed files with 2 additions and 0 deletions

View File

@ -536,6 +536,8 @@ static int jingle_create_candidates(struct jingle *client, struct jingle_pvt *p,
}
ours1 = ast_calloc(1, sizeof(*ours1));
ours2 = ast_calloc(1, sizeof(*ours2));
if (!ours1 || !ours2)
goto safeout;
iks_insert_node(iq, jingle);
iks_insert_node(jingle, candidate);