mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-15 12:17:36 +00:00
fix incorrect return value (issue #6202)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+1
-1
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user