[asterisk-commits] trunk r34663 - /trunk/channels/chan_jingle.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Jun 18 14:24:35 MST 2006
Author: russell
Date: Sun Jun 18 16:24:35 2006
New Revision: 34663
URL: http://svn.digium.com/view/asterisk?rev=34663&view=rev
Log:
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)
Modified:
trunk/channels/chan_jingle.c
Modified: trunk/channels/chan_jingle.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_jingle.c?rev=34663&r1=34662&r2=34663&view=diff
==============================================================================
--- trunk/channels/chan_jingle.c (original)
+++ trunk/channels/chan_jingle.c Sun Jun 18 16:24:35 2006
@@ -536,6 +536,8 @@
}
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);
More information about the asterisk-commits
mailing list