Merge branch 'master' into next
[paraslash.git] / user_list.c
index 840802b33ba811816e3459284cd471644b134bb8..1d3f21cfa248a9b950ea57fd86877682ae75e152 100644 (file)
@@ -55,6 +55,11 @@ static void populate_user_list(char *user_list_file)
                                para_strerror(-ret));
                        continue;
                }
+               if (ret < CHALLENGE_SIZE + 2 * CHALLENGE_SIZE + 41) {
+                       PARA_WARNING_LOG("rsa key for %s too small\n", n);
+                       rsa_free(rsa);
+                       continue;
+               }
                u = para_malloc(sizeof(*u));
                u->name = para_strdup(n);
                u->rsa = rsa;