]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure AF for src IP matches AF for dst IP
authorAlan T. DeKok <aland@freeradius.org>
Wed, 25 May 2011 09:43:35 +0000 (11:43 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 25 May 2011 09:44:31 +0000 (11:44 +0200)
src/main/realms.c

index 939956d1025d3a541d260c7b44d2f0ff383f972a..4e6e4afb797440628ef726a9e20a0e714a120872 100644 (file)
@@ -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;