fix out of range bug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24477 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -911,7 +911,7 @@ process_stream(krb5_context context,
|
||||
*/
|
||||
CHECK(krb5_store_uint32(dreply, gctx.seq_num));
|
||||
|
||||
if (chdr.proc < sizeof(procs[0])/sizeof(procs)) {
|
||||
if (chdr.proc >= sizeof(procs[0])/sizeof(procs)) {
|
||||
krb5_warnx(context, "proc number out of array");
|
||||
} else if (procs[chdr.proc].func == NULL) {
|
||||
krb5_warnx(context, "proc '%s' never implemented",
|
||||
|
Reference in New Issue
Block a user