diff options
Diffstat (limited to 'lib/ZIfNotice.c')
-rw-r--r-- | lib/ZIfNotice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ZIfNotice.c b/lib/ZIfNotice.c index 8482ef5..44815cf 100644 --- a/lib/ZIfNotice.c +++ b/lib/ZIfNotice.c @@ -41,7 +41,8 @@ Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) for (;;qcount--) { if ((retval = ZParseNotice(qptr->packet,qptr->packet_len, - &tmpnotice,&tmpauth)) != ZERR_NONE) + &tmpnotice,&tmpauth,&qptr->from)) + != ZERR_NONE) return (retval); if ((predicate)(&tmpnotice,args)) { if (qptr->packet_len > buffer_len) @@ -51,6 +52,7 @@ Code_t ZIfNotice(buffer,buffer_len,notice,auth,predicate,args) notice,auth)) != ZERR_NONE) return (retval); + *auth = tmpauth; return (Z_RemQueue(qptr)); } /* Grunch! */ |