gss: store_spnego_context(): remove redundant overflow check

ctx->negoex_step is now a uint8_t, so it can never be bigger than 0xff. Remove
redundant overflow check.
This commit is contained in:
Luke Howard
2021-08-10 20:11:35 +10:00
parent d34700b4d9
commit a27a3af0c2

View File

@@ -296,10 +296,6 @@ store_spnego_context(krb5_storage *sp, gssspnego_ctx ctx)
uint32_t nschemes;
struct negoex_auth_mech *mech;
if (ctx->negoex_step > 0xff) {
ret = ERANGE;
goto fail;
}
CHECK(ret, krb5_store_uint8(sp, ctx->negoex_step));
if (ctx->negoex_transcript) {