mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00: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:
@@ -2510,10 +2510,11 @@ static struct sip_peer *realtime_peer(const char *newpeername, struct sockaddr_i
|
|||||||
} else
|
} else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!var)
|
if (!var) {
|
||||||
if(peerlist)
|
if(peerlist)
|
||||||
ast_config_destroy(peerlist);
|
ast_config_destroy(peerlist);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (tmp = var; tmp; tmp = tmp->next) {
|
for (tmp = var; tmp; tmp = tmp->next) {
|
||||||
/* If this is type=user, then skip this object. */
|
/* If this is type=user, then skip this object. */
|
||||||
|
Reference in New Issue
Block a user