summaryrefslogtreecommitdiff
path: root/lib/ZFmtAuth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZFmtAuth.c')
-rw-r--r--lib/ZFmtAuth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ZFmtAuth.c b/lib/ZFmtAuth.c
index 7698058..d0bf6c2 100644
--- a/lib/ZFmtAuth.c
+++ b/lib/ZFmtAuth.c
@@ -41,9 +41,12 @@ Code_t ZFormatAuthenticNotice(notice, buffer, buffer_len, len, session)
&hdrlen, &ptr)) != ZERR_NONE)
return (retval);
+#ifdef NOENCRYPTION
+ newnotice.z_checksum = 0;
+#else
newnotice.z_checksum = (ZChecksum_t)quad_cksum(buffer, NULL, ptr - buffer,
0, session);
-
+#endif
if ((retval = Z_FormatRawHeader(&newnotice, buffer, buffer_len,
&hdrlen, (char **) 0)) != ZERR_NONE)
return (retval);