Use new state machine framework to refactor dns_ai_nextaf, fixing NULL dereference and making the code flow easier to follow even with the new logic
Use new state machine framework to refactor dns_ai_nextaf, fixing NULL dereference and making the code flow easier to follow even with the new logic

wahern/dns,wahern/dns