(do_authenticate): if request length is less then 8, its a bad request

and fail. Pointed out by Marco Foglia <marco@foglia.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12970 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-10-06 20:22:07 +00:00
parent 911c773668
commit 4ba454b93f

View File

@@ -402,6 +402,10 @@ do_authenticate (struct rx_header *hdr,
unparse_auth_args (sp, &name, &instance, &start_time, &end_time,
&request, &max_seq_len);
if (request.length < 8) {
make_error_reply (hdr, KABADREQUEST, reply);
goto out;
}
snprintf (client_name, sizeof(client_name), "%s.%s@%s",
name, instance, v4_realm);