summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-08-10 22:27:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:35 -0500
commit25b94718f108036961619c4a7451e0cf1d8ba72a (patch)
tree80ae45e9c24118929c5c584b1d5771cffc10518d /source4
parent457d7fd6727391e8c25b304b554c66d403fe43e2 (diff)
downloadsamba-25b94718f108036961619c4a7451e0cf1d8ba72a.tar.gz
samba-25b94718f108036961619c4a7451e0cf1d8ba72a.tar.bz2
samba-25b94718f108036961619c4a7451e0cf1d8ba72a.zip
r9234: Ensure we always change the end of the PAC, no matter what it is. Fix
typo in comment. Andrew Bartlett (This used to be commit c96f8594b16c6a5310e2e8727bb6975f2a193231)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/auth/pac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/auth/pac.c b/source4/torture/auth/pac.c
index c6bec47238..65bb5456cc 100644
--- a/source4/torture/auth/pac.c
+++ b/source4/torture/auth/pac.c
@@ -413,7 +413,7 @@ static BOOL torture_pac_saved_check(void)
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 @@ static BOOL torture_pac_saved_check(void)
}
/* 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,