fix incorrect return value (issue #6202)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 20 years ago
parent 0318a4b180
commit 69c4cefcd4

@ -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++;

Loading…
Cancel
Save