fix incorrect return value (issue #6202)
authorRussell Bryant <russell@russellbryant.com>
Wed, 11 Jan 2006 19:23:16 +0000 (19:23 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 11 Jan 2006 19:23:16 +0000 (19:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7988 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 9266c33..95819e5 100644 (file)
@@ -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++;