projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c192f20
)
API fixes for 2.2.0
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 30 Jul 2010 12:43:49 +0000
(14:43 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 30 Jul 2010 12:43:49 +0000
(14:43 +0200)
src/main/listen.c
patch
|
blob
|
history
diff --git
a/src/main/listen.c
b/src/main/listen.c
index
4928b74
..
03fafaf
100644
(file)
--- a/
src/main/listen.c
+++ b/
src/main/listen.c
@@
-881,12
+881,12
@@
static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
sock->my_port = listen_port;
if (check_config) {
sock->my_port = listen_port;
if (check_config) {
- if (home_server_find(&sock->
ipaddr, sock->port
)) {
+ if (home_server_find(&sock->
my_ipaddr, sock->my_port, sock->proto
)) {
char buffer[128];
DEBUG("ERROR: We have been asked to listen on %s port %d, which is also listed as a home server. This can create a proxy loop.",
char buffer[128];
DEBUG("ERROR: We have been asked to listen on %s port %d, which is also listed as a home server. This can create a proxy loop.",
- ip_ntoh(&sock->ipaddr, buffer, sizeof(buffer)),
- sock->port);
+ ip_ntoh(&sock->
my_
ipaddr, buffer, sizeof(buffer)),
+ sock->
my_
port);
return -1;
}
return -1;
}