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_2_1_11~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=251531340402462b4bce22d5d1792ead6735fd30;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 3196ea4c976..e063e544961 100644 --- a/src/main/realms.c +++ b/src/main/realms.c @@ -570,6 +570,14 @@ 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;