K 10 svn:author V 6 kevans K 8 svn:date V 27 2022-09-18T06:28:57.749605Z K 7 svn:log V 531 tools: test: iconv: fix open_2 to not segfault Record error condition when iconv_open() fails rather than leaving a bogus iconv_t that iconv_close() can later choke on; this is one failure mode. If we opened MAX_LIMIT files with success, we need to rewind one so that we don't iconv_close() one past the end of cd; this is the second failure mode. Sponsored by: Klara, Inc. (cherry picked from commit 814bd1ed438f7dfc5bedcb1f3e772a46fe7026bb) Git Hash: 65b33f206d3465c10f374ded3895efb9872d6f63 Git Author: kevans@FreeBSD.org END