]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_config.c
First try for a volume defaults config
[netatalk.git] / etc / afpd / afp_config.c
index cdc9e4f0100ff50f8cf297cec0815d97d748d4f4..d78c2742a5ea819a6295136990b0c5024231e5b2 100644 (file)
@@ -50,6 +50,9 @@ void configfree(AFPObj *obj, DSI *dsi)
 {
     DSI *p, *q;
 
+    /* the master loaded the volumes for zeroconf, get rid of that */
+    unload_volumes(obj);
+
     for (p = obj->dsi; p; p = q) {
         q = p->next;
         if (p == dsi)
@@ -64,8 +67,6 @@ void configfree(AFPObj *obj, DSI *dsi)
         afp_options_free(&obj->options);
     }
 
-    /* the master loaded the volumes for zeroconf, get rid of that */
-    unload_volumes();
 }
 
 /*!
@@ -117,7 +118,7 @@ int configinit(AFPObj *obj)
         EC_FAIL;
 
 #ifdef HAVE_LDAP
-    /* Parse afp_ldap.conf */
+    /* Parse afp.conf */
     acl_ldap_readconfig(obj->iniconfig);
 #endif /* HAVE_LDAP */