Set NULL to the ai_next pointer which fix cap_getaddrinfo().
authoroshogbo <oshogbo@FreeBSD.org>
Thu, 14 Apr 2016 18:27:10 +0000 (18:27 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Thu, 14 Apr 2016 18:27:10 +0000 (18:27 +0000)
commitb39957c360ee5bb0d9e656e636e36d475713f6cc
tree3085f25fe79435f760d8f2d477207e43cc9e0136
parentc3dfe54d824933b6bf801646313bf6eb06e0888f
Set NULL to the ai_next pointer which fix cap_getaddrinfo().
Add regression test case.

PR: 195551
Submitted by: Mikhail <mp39590@gmail.com>
Approved by: pjd (mentor)
lib/libcasper/services/cap_dns/cap_dns.c
tools/regression/capsicum/libcasper/dns.c