[asterisk-commits] mmichelson: branch group/CCSS r232267 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 2 09:41:10 CST 2009
Author: mmichelson
Date: Wed Dec 2 09:41:07 2009
New Revision: 232267
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232267
Log:
Use the passed-in size instead of the arbitrary 256 when allocating the ast_str
Modified:
team/group/CCSS/channels/chan_sip.c
Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=232267&r1=232266&r2=232267
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Wed Dec 2 09:41:07 2009
@@ -8206,7 +8206,7 @@
static char *generate_uri(struct sip_pvt *pvt, char *buf, size_t size)
{
- struct ast_str *uri = ast_str_alloca(256);
+ struct ast_str *uri = ast_str_alloca(size);
int ourport = ntohs(pvt->ourip.sin_port);
ast_str_set(&uri, 0, "%s", pvt->socket.type == SIP_TRANSPORT_TLS ? "sips:" : "sip:");
/* Here would be a great place to generate a UUID, but for now we'll
More information about the asterisk-commits
mailing list