projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6453de
)
This one line change makes an if inside a for loop (in realtime_peer) check all the...
author
Jeff Peeler
<jpeeler@digium.com>
Tue, 25 Mar 2008 20:02:57 +0000
(20:02 +0000)
committer
Jeff Peeler
<jpeeler@digium.com>
Tue, 25 Mar 2008 20:02:57 +0000
(20:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110726
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
ffca420
..
cfa3835
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-3606,7
+3606,7
@@
static struct sip_peer *realtime_peer(const char *newpeername, struct sockaddr_i
*/
if (var) {
for (tmp = var; tmp; tmp = tmp->next) {
- if (!strcasecmp(var->name, "host")) {
+ if (!strcasecmp(tmp->name, "host")) {
struct hostent *hp;
struct ast_hostent ahp;
if (!(hp = ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr, &sin->sin_addr, sizeof(hp->h_addr)))) {