(do_getticket): if times data is shorter then 8 byte, request is mailformed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12971 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -604,6 +604,11 @@ do_getticket (struct rx_header *hdr,
|
||||
|
||||
unparse_getticket_args (sp, &kvno, &auth_domain, &aticket,
|
||||
&name, &instance, ×, &max_seq_len);
|
||||
if (times.length < 8) {
|
||||
make_error_reply (hdr, KABADREQUEST, reply);
|
||||
goto out;
|
||||
|
||||
}
|
||||
|
||||
snprintf (server_name, sizeof(server_name),
|
||||
"%s.%s@%s", name, instance, v4_realm);
|
||||
|
Reference in New Issue
Block a user