Author: abartlet Date: 2005-08-10 22:27:55 +0000 (Wed, 10 Aug 2005) New Revision: 9234
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9234 Log: Ensure we always change the end of the PAC, no matter what it is. Fix typo in comment. Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/auth/pac.c Changeset: Modified: branches/SAMBA_4_0/source/torture/auth/pac.c =================================================================== --- branches/SAMBA_4_0/source/torture/auth/pac.c 2005-08-10 22:27:04 UTC (rev 9233) +++ branches/SAMBA_4_0/source/torture/auth/pac.c 2005-08-10 22:27:55 UTC (rev 9234) @@ -413,7 +413,7 @@ krb5_free_keyblock_contents(smb_krb5_context->krb5_context, &server_keyblock); - DEBUG(0, ("PAC push failed: orignial buffer length[%u] != created buffer length[%u]\n", + DEBUG(0, ("PAC push failed: original buffer length[%u] != created buffer length[%u]\n", (unsigned)tmp_blob.length, (unsigned)validate_blob.length)); talloc_free(mem_ctx); return False; @@ -432,8 +432,8 @@ } /* Finally... Bugger up the signature, and check we fail the checksum */ - - tmp_blob.data[tmp_blob.length - 2] = 0xff; + tmp_blob.data[tmp_blob.length - 2]++; + nt_status = kerberos_decode_pac(mem_ctx, &pac_data, tmp_blob, smb_krb5_context,
