]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
NETCFG: first free the configs, then the infrastructure needed to free them.
[citadel.git] / citadel / citserver.c
index 0c8955a8a2b3fb10386b589818e6a3618aff6088..d91b976b059bc003bc3a4bd2cc06dde4fc0602b0 100644 (file)
 #include "euidindex.h"
 #include "context.h"
 #include "svn_revision.h"
-
-#ifndef HAVE_SNPRINTF
-#include "snprintf.h"
-#endif
-
 #include "ctdl_module.h"
 
 char *unique_session_numbers;
@@ -284,7 +279,9 @@ void cmd_info(char *cmdbuf) {
        cprintf("0\n"); /* 1 = no, this server is not LDAP-enabled */
 #endif
 
-       if (config.c_auth_mode == AUTHMODE_NATIVE) {
+       if ((config.c_auth_mode == AUTHMODE_NATIVE) &&
+           (config.c_disable_newu == 0))
+       {
                cprintf("%d\n", config.c_disable_newu);
        }
        else {