summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2010-12-11 22:08:12 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2010-12-11 22:08:12 +0000
commit856870da15cf801891b51e6a8624d7e51fbda682 (patch)
treebe82a017ee2c68b571f6ac563775d3beab1f770f /lib
parentfb2b001104b02d15b4abe72020b8d763eb7f28da (diff)
In the expired tickets case, authent->length is probably gibberish;
notice->z_authent_authent_len will be zero.
Diffstat (limited to 'lib')
-rw-r--r--lib/ZMkAuth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ZMkAuth.c b/lib/ZMkAuth.c
index 5f65fa6..a33574f 100644
--- a/lib/ZMkAuth.c
+++ b/lib/ZMkAuth.c
@@ -160,7 +160,7 @@ ZMakeZcodeRealmAuthentication(register ZNotice_t *notice,
}
if (!result)
result = ZMakeZcode(notice->z_ascii_authent, zcode_len,
- (unsigned char *)authent->data, authent->length);
+ (unsigned char *)authent->data, notice->z_authent_len);
/* format the notice header, with a zero checksum */
if (!result)