mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@34663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -536,6 +536,8 @@ static int jingle_create_candidates(struct jingle *client, struct jingle_pvt *p,
|
|||||||
}
|
}
|
||||||
ours1 = ast_calloc(1, sizeof(*ours1));
|
ours1 = ast_calloc(1, sizeof(*ours1));
|
||||||
ours2 = ast_calloc(1, sizeof(*ours2));
|
ours2 = ast_calloc(1, sizeof(*ours2));
|
||||||
|
if (!ours1 || !ours2)
|
||||||
|
goto safeout;
|
||||||
iks_insert_node(iq, jingle);
|
iks_insert_node(iq, jingle);
|
||||||
iks_insert_node(jingle, candidate);
|
iks_insert_node(jingle, candidate);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user