[asterisk-commits] marquis: branch group/pinana-publish-1.4 r296523 - /team/group/pinana-publish...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Nov 28 13:10:59 CST 2010
Author: marquis
Date: Sun Nov 28 13:10:56 2010
New Revision: 296523
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=296523
Log:
Let's not return as if we have no issues if we can't allocate an ao2 object.
Modified:
team/group/pinana-publish-1.4/channels/chan_sip.c
Modified: team/group/pinana-publish-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pinana-publish-1.4/channels/chan_sip.c?view=diff&rev=296523&r1=296522&r2=296523
==============================================================================
--- team/group/pinana-publish-1.4/channels/chan_sip.c (original)
+++ team/group/pinana-publish-1.4/channels/chan_sip.c Sun Nov 28 13:10:56 2010
@@ -9922,7 +9922,7 @@
snprintf(uri, sizeof(uri), "sip:%s@%s", sc->dev, pres_server->domain);
if (!device = ao2_alloc(sizeof(struct sip_published_device), pubdev_destructor)) {
ast_log(LOG_ERROR, "Cannot allocate sip_published_device!\n");
- return 0;
+ return -1;
}
ast_copy_string(device->name, sc->dev, sizeof(device->name));
ast_copy_string(device->pubname, pres_server->name, sizeof(device->pubname));
More information about the asterisk-commits
mailing list