From: Russell Bryant Date: Wed, 11 Jan 2006 19:23:16 +0000 (+0000) Subject: fix incorrect return value (issue #6202) X-Git-Tag: 1.4.0-beta1~2987 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69c4cefcd49a282dd0b155cf0a828db2885fb232;p=thirdparty%2Fasterisk.git fix incorrect return value (issue #6202) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7988 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9266c33390..95819e5b56 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12066,7 +12066,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int found++; } else { if (!(peer = ast_calloc(1, sizeof(*peer)))) - return -1; + return NULL; if (realtime) rpeerobjs++;