diff options
Diffstat (limited to 'lib/ZMkAuth.c')
-rw-r--r-- | lib/ZMkAuth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ZMkAuth.c b/lib/ZMkAuth.c index a11b87b..c6ecfdb 100644 --- a/lib/ZMkAuth.c +++ b/lib/ZMkAuth.c @@ -85,12 +85,12 @@ Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) checksum = des_quad_cksum(buffer, NULL, cstart - buffer, 0, cred.session); checksum ^= des_quad_cksum(cend, NULL, buffer + *len - cend, 0, cred.session); - checksum ^= des_quad_cksum(notice->z_message, NULL, notice->message_len, 0, - cred.session); + checksum ^= des_quad_cksum(notice->z_message, NULL, notice->z_message_len, + 0, cred.session); notice->z_checksum = (ZChecksum_t) checksum; checksum = htonl(checksum); - ZMakeAscii(cptr, buffer + buffer_len - cptr, (unsigned char *) &checksum, - sizeof(checksum)); + ZMakeAscii(cstart, buffer + buffer_len - cstart, + (unsigned char *) &checksum, sizeof(checksum)); return (ZERR_NONE); #else |