]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Better way of updating cf_data_add release_2_1_10
authorAlan T. DeKok <aland@freeradius.org>
Tue, 28 Sep 2010 11:03:56 +0000 (13:03 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Sep 2010 11:03:56 +0000 (13:03 +0200)
src/main/realms.c

index 02b19abd49d92ceada8092d91c33973b754b826d..79cb1347cd8cd06fa8db69dfc0b0da9fed82082a 100644 (file)
@@ -355,6 +355,10 @@ static CONF_PARSER home_server_config[] = {
 };
 
 
+static void null_free(UNUSED void *data)
+{
+}
+
 static int home_server_add(realm_config_t *rc, CONF_SECTION *cs, int pool_type)
 {
        const char *name2;
@@ -700,7 +704,7 @@ static int home_server_add(realm_config_t *rc, CONF_SECTION *cs, int pool_type)
        /*
         *      Mark it as already processed
         */
-       cf_data_add(cs, "home_server", "added", NULL);
+       cf_data_add(cs, "home_server", null_free, null_free);
 
        return 1;
 }