summaryrefslogtreecommitdiff
path: root/lib/ZMkAuth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZMkAuth.c')
-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)