summaryrefslogtreecommitdiff
path: root/lib/ZIfNotice.c
diff options
context:
space:
mode:
authorGravatar Robert S. French <rfrench@mit.edu>1987-06-24 00:19:34 +0000
committerGravatar Robert S. French <rfrench@mit.edu>1987-06-24 00:19:34 +0000
commit16a8eef3e4677dee6d67b1a75bbfcd38ed0682af (patch)
treecead16171179de23e405d913670645e6221d2cd2 /lib/ZIfNotice.c
parent5996af46d1060bc74bb16c16ed0dc30b15ccfc49 (diff)
safety
Diffstat (limited to 'lib/ZIfNotice.c')
-rw-r--r--lib/ZIfNotice.c8
1 files changed, 4 insertions, 4 deletions
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! */