Don't set parent if the unpack operation fail. In some
authoroshogbo <oshogbo@FreeBSD.org>
Tue, 11 Aug 2015 17:54:51 +0000 (17:54 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Tue, 11 Aug 2015 17:54:51 +0000 (17:54 +0000)
commit7ad07c63652bfc184ad44015e734dcfc719822c2
tree3fc29c9f705381de45f922aedac63af22dbfc909
parent96cc308aa82efa87c3753c06f1039a9c921dccd3
Don't set parent if the unpack operation fail. In some
case this could crash the library, because of the NULL pointer references.

Discovered thanks to american fuzzy lop.

Approved by: pjd (mentor)
sys/contrib/libnv/nvlist.c