From 16a8eef3e4677dee6d67b1a75bbfcd38ed0682af Mon Sep 17 00:00:00 2001 From: "Robert S. French" Date: Wed, 24 Jun 1987 00:19:34 +0000 Subject: safety --- lib/ZIfNotice.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/ZIfNotice.c') diff --git a/lib/ZIfNotice.c b/lib/ZIfNotice.c index 44815cf..ecdd851 100644 --- a/lib/ZIfNotice.c +++ b/lib/ZIfNotice.c @@ -41,18 +41,18 @@ Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) for (;;qcount--) { if ((retval = ZParseNotice(qptr->packet,qptr->packet_len, - &tmpnotice,&tmpauth,&qptr->from)) - != ZERR_NONE) + &tmpnotice,auth?&tmpauth:0, + &qptr->from)) != ZERR_NONE) return (retval); if ((predicate)(&tmpnotice,args)) { if (qptr->packet_len > buffer_len) return (ZERR_PKTLEN); bcopy(qptr->packet,buffer,qptr->packet_len); if ((retval = ZParseNotice(buffer,qptr->packet_len, - notice,auth)) + notice,auth, + &qptr->from)) != ZERR_NONE) return (retval); - *auth = tmpauth; return (Z_RemQueue(qptr)); } /* Grunch! */ -- cgit v1.2.3