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 02b19ab..79cb134 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;
 }