diff options
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; |