-/* $OpenBSD: gethostnamadr_async.c,v 1.46 2022/11/17 17:39:41 florian Exp $ */
+/* $OpenBSD: gethostnamadr_async.c,v 1.47 2023/11/14 08:27:33 florian Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
}
async_set_state(as, ASR_STATE_HALT);
break;
- } else {
- if (!hnok_lenient(as->as.hostnamadr.name)) {
- ar->ar_gai_errno = EAI_FAIL;
- async_set_state(as, ASR_STATE_HALT);
- }
+ }
+
+ if (!hnok_lenient(as->as.hostnamadr.name)) {
+ ar->ar_gai_errno = EAI_FAIL;
+ async_set_state(as, ASR_STATE_HALT);
+ break;
}
}
async_set_state(as, ASR_STATE_NEXT_DB);