From 7bf9b4390e877a960a2dbcc35e848b11dd989544 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 23 Mar 2009 13:48:03 +0000 Subject: notice->z_other_fields[notice->z_num_other_fields] is either going to be NULL, something Wrong^TM, or off the end of z_other_fields. bad all around. --- server/kstuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/kstuff.c') diff --git a/server/kstuff.c b/server/kstuff.c index ba50fdc..5ae30d4 100644 --- a/server/kstuff.c +++ b/server/kstuff.c @@ -720,7 +720,7 @@ ZCheckAuthentication(ZNotice_t *notice, */ cksum1_base = notice->z_multinotice; if (notice->z_num_other_fields) - x = notice->z_other_fields[notice->z_num_other_fields]; + x = notice->z_other_fields[notice->z_num_other_fields - 1]; else x = cksum1_base + strlen(cksum1_base) + 1; /* multiuid */ cksum1_len = x + strlen(x) + 1 - cksum1_base; -- cgit v1.2.3