]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - user_list.c
paraslash 0.7.3
[paraslash.git] / user_list.c
index 32a4309d4360fa73a8e7d0bbef622a7928001bb0..46770edf701e983d424e8869e7c9ccd4730c3cf9 100644 (file)
@@ -91,7 +91,7 @@ void user_list_init(const char *user_list_file)
                        continue;
                if (strcmp(w, "user"))
                        continue;
-               PARA_DEBUG_LOG("found entry for user %s\n", n);
+               PARA_INFO_LOG("loading pubkey %s for user %s\n", k, n);
                ret = apc_get_pubkey(k, &pubkey);
                if (ret < 0) {
                        PARA_NOTICE_LOG("skipping entry for user %s: %s\n", n,
@@ -110,7 +110,7 @@ void user_list_init(const char *user_list_file)
                        apc_free_pubkey(pubkey);
                        continue;
                }
-               u = para_malloc(sizeof(*u));
+               u = alloc(sizeof(*u));
                u->name = para_strdup(n);
                u->pubkey = pubkey;
                u->perms = 0;