[asterisk-commits] tilghman: trunk r168334 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 9 19:42:46 CST 2009


Author: tilghman
Date: Fri Jan  9 19:42:45 2009
New Revision: 168334

URL: http://svn.digium.com/view/asterisk?view=rev&rev=168334
Log:
sizeof for a stringfield is 4.  Kinda low for reconstructing a field value.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=168334&r1=168333&r2=168334
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jan  9 19:42:45 2009
@@ -22050,7 +22050,7 @@
 	struct sip_peer tmp_peer;
 	const char *srvlookup = NULL;
 	static int deprecation_warning = 1;
-	struct ast_str *fullcontact = ast_str_alloca(sizeof(peer->fullcontact));
+	struct ast_str *fullcontact = ast_str_alloca(512);
 	
 	if (!realtime || ast_test_flag(&global_flags[1], SIP_PAGE2_RTCACHEFRIENDS)) {
 		/* Note we do NOT use find_peer here, to avoid realtime recursion */




More information about the asterisk-commits mailing list