From: Alan T. DeKok Date: Wed, 25 May 2011 09:43:35 +0000 (+0200) Subject: Ensure AF for src IP matches AF for dst IP X-Git-Tag: release_3_0_0_beta0~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ad656957a4bb8206fc795c9666d58aac3ec516;p=thirdparty%2Ffreeradius-server.git Ensure AF for src IP matches AF for dst IP --- diff --git a/src/main/realms.c b/src/main/realms.c index 939956d1025..4e6e4afb797 100644 --- a/src/main/realms.c +++ b/src/main/realms.c @@ -692,6 +692,13 @@ static int home_server_add(realm_config_t *rc, CONF_SECTION *cs) goto error; } + /* + * Make sure that this is set. + */ + if (home->src_ipaddr.af == AF_UNSPEC) { + home->src_ipaddr.af = home->ipaddr.af; + } + free(hs_srcipaddr); hs_srcipaddr = NULL;