diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-11 19:23:16 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-11 19:23:16 +0000 |
commit | 5042d107ff63d7e4fe93c2d1a59193885d577dff (patch) | |
tree | 24ff73cd443294435facb4aa64be5023991084b7 /channels | |
parent | 15ce8e0e1e328e84e11b6b798407a981f47e111c (diff) |
fix incorrect return value (issue #6202)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7988 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9266c3339..95819e5b5 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++; |