X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=user_list.c;h=1d3f21cfa248a9b950ea57fd86877682ae75e152;hp=840802b33ba811816e3459284cd471644b134bb8;hb=672e27768e31a6eaa6854d4fc75ee6885db9abd8;hpb=a9126f461792a84c760162ecb25100f1593d427d diff --git a/user_list.c b/user_list.c index 840802b3..1d3f21cf 100644 --- a/user_list.c +++ b/user_list.c @@ -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;