mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 20:02:06 -04:00
minor simplification
This commit is contained in:
parent
769dd27de8
commit
f6094e763b
1 changed files with 5 additions and 7 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: zone.c,v 1.187 2000/08/17 13:13:37 marka Exp $ */
|
||||
/* $Id: zone.c,v 1.188 2000/08/17 16:15:02 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -1907,20 +1907,18 @@ notify_find_address(dns_notify_t *notify) {
|
|||
LOCK(&zone->lock);
|
||||
notify_destroy(notify);
|
||||
UNLOCK(&zone->lock);
|
||||
dns_zone_idetach(&zone);
|
||||
return;
|
||||
goto detach;
|
||||
}
|
||||
|
||||
/* More addresses pending? */
|
||||
if ((notify->find->options & DNS_ADBFIND_WANTEVENT) != 0) {
|
||||
dns_zone_idetach(&zone);
|
||||
return;
|
||||
}
|
||||
if ((notify->find->options & DNS_ADBFIND_WANTEVENT) != 0)
|
||||
goto detach;
|
||||
|
||||
/* We have as many addresses as we can get. */
|
||||
LOCK(&zone->lock);
|
||||
notify_send(notify);
|
||||
UNLOCK(&zone->lock);
|
||||
detach:
|
||||
dns_zone_idetach(&zone);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue