~sircmpwn/deacme unlisted

9e8c8d64822cfe49ee05c9a4c86b205e1b2931ea — Drew DeVault 2 years ago 7f52185 master
Add better logging in dnsproc write* fail
1 files changed, 2 insertions(+), 0 deletions(-)

M dnsproc.c
M dnsproc.c => dnsproc.c +2 -0
@@ 176,9 176,11 @@ int dnsproc(int nfd) {
		}
		for (i = 0; i < (size_t)vsz; i++) {
			if (writeop(nfd, COMM_DNSF, v[i].family) <= 0) {
				warnx("dnsproc: writeop COMM_DNSF");
				goto out;
			}
			if (writestr(nfd, COMM_DNSA, v[i].ip) <= 0) {
				warnx("dnsproc: writestr COMM_DNSA");
				goto out;
			}
		}