mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-26 18:35:14 -07:00
Fixed a mistake I made in realtime_peer which caused it to return NULL every time.
Thanks to Jon Fealy for emailing me the correction. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-1
@@ -2510,10 +2510,11 @@ static struct sip_peer *realtime_peer(const char *newpeername, struct sockaddr_i
|
||||
} else
|
||||
return NULL;
|
||||
|
||||
if (!var)
|
||||
if (!var) {
|
||||
if(peerlist)
|
||||
ast_config_destroy(peerlist);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (tmp = var; tmp; tmp = tmp->next) {
|
||||
/* If this is type=user, then skip this object. */
|
||||
|
||||
Reference in New Issue
Block a user