diff options
author | Robert S. French <rfrench@mit.edu> | 1987-06-24 00:19:34 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1987-06-24 00:19:34 +0000 |
commit | 16a8eef3e4677dee6d67b1a75bbfcd38ed0682af (patch) | |
tree | cead16171179de23e405d913670645e6221d2cd2 /lib/ZCkIfNot.c | |
parent | 5996af46d1060bc74bb16c16ed0dc30b15ccfc49 (diff) |
safety
Diffstat (limited to 'lib/ZCkIfNot.c')
-rw-r--r-- | lib/ZCkIfNot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ZCkIfNot.c b/lib/ZCkIfNot.c index 22119df..3e5f6ad 100644 --- a/lib/ZCkIfNot.c +++ b/lib/ZCkIfNot.c @@ -36,7 +36,8 @@ Code_t ZCheckIfNotice(buffer,buffer_len,notice,auth,predicate,args) for (;qcount;qcount--) { if ((retval = ZParseNotice(qptr->packet,qptr->packet_len, - &tmpnotice,&tmpauth,&qptr->from)) + &tmpnotice,auth?&tmpauth:0, + &qptr->from)) != ZERR_NONE) return (retval); if ((predicate)(&tmpnotice,args)) { @@ -44,10 +45,10 @@ Code_t ZCheckIfNotice(buffer,buffer_len,notice,auth,predicate,args) 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)); } qptr = qptr->next; |