Skip to content

Commit

Permalink
s4:torture: Remove PAC-REQUEST check for RESPONSE_TOO_BIG
Browse files Browse the repository at this point in the history
Needed by the Heimdal upgrade...

NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN!

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
  • Loading branch information
jsutton24 authored and Joseph Sutton committed Jan 19, 2022
1 parent 9eead48 commit a24280d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions source4/torture/krb5/kdc-heimdal.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,8 @@ static bool torture_krb5_post_recv_test(struct torture_krb5_context *test_contex
torture_assert(test_context->tctx,
ok,
"torture_check_krb5_error failed");
} else if (test_context->packet_count == 1) {
ok = torture_check_krb5_error(test_context,
recv_buf,
KRB5KRB_ERR_RESPONSE_TOO_BIG,
false);
torture_assert(test_context->tctx,
ok,
"torture_check_krb5_error failed");
} else if ((decode_KRB_ERROR(recv_buf->data, recv_buf->length, &error, &used) == 0)
&& (test_context->packet_count == 2)) {
&& (test_context->packet_count == 1)) {
torture_assert_int_equal(test_context->tctx, used, recv_buf->length, "length mismatch");
torture_assert_int_equal(test_context->tctx, error.pvno, 5, "Got wrong error.pvno");
torture_assert_int_equal(test_context->tctx, error.error_code, KRB5KRB_ERR_RESPONSE_TOO_BIG - KRB5KDC_ERR_NONE,
Expand All @@ -413,7 +405,7 @@ static bool torture_krb5_post_recv_test(struct torture_krb5_context *test_contex
torture_assert_int_equal(test_context->tctx, test_context->as_rep.pvno, 5, "Got wrong as_rep->pvno");
free_AS_REP(&test_context->as_rep);
}
torture_assert(test_context->tctx, test_context->packet_count < 3, "too many packets");
torture_assert(test_context->tctx, test_context->packet_count < 2, "too many packets");
free_AS_REQ(&test_context->as_req);
break;

Expand Down

0 comments on commit a24280d

Please sign in to comment.