From 856870da15cf801891b51e6a8624d7e51fbda682 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sat, 11 Dec 2010 22:08:12 +0000 Subject: In the expired tickets case, authent->length is probably gibberish; notice->z_authent_authent_len will be zero. --- lib/ZMkAuth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3