mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
This commit was generated by cvs2svn to compensate for changes in r105672,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
0c3bd4ca35
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105673
@ -41,7 +41,7 @@
|
||||
#include <krb_err.h>
|
||||
#include <kadm_err.h>
|
||||
|
||||
RCSID("$Id: version4.c,v 1.26 2002/09/10 15:20:46 joda Exp $");
|
||||
RCSID("$Id: version4.c,v 1.27 2002/10/21 12:35:07 joda Exp $");
|
||||
|
||||
#define KADM_NO_OPCODE -1
|
||||
#define KADM_NO_ENCRYPT -2
|
||||
@ -822,6 +822,13 @@ decode_packet(krb5_context context,
|
||||
off += _krb5_get_int(msg + off, &rlen, 4);
|
||||
memset(&authent, 0, sizeof(authent));
|
||||
authent.length = message.length - rlen - KADM_VERSIZE - 4;
|
||||
|
||||
if(authent.length >= MAX_KTXT_LEN) {
|
||||
krb5_warnx(context, "received bad rlen (%lu)", (unsigned long)rlen);
|
||||
make_you_loose_packet (KADM_LENGTH_ERROR, reply);
|
||||
return;
|
||||
}
|
||||
|
||||
memcpy(authent.dat, (char*)msg + off, authent.length);
|
||||
off += authent.length;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user