priv_write_resolv_conf() code that was moved into the
dispatch loop.
-/* $OpenBSD: privsep.c,v 1.47 2017/06/23 15:40:56 krw Exp $ */
+/* $OpenBSD: privsep.c,v 1.48 2017/06/23 16:18:02 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
break;
case IMSG_WRITE_RESOLV_CONF:
- if (imsg.hdr.len <= IMSG_HEADER_SIZE) {
+ if (imsg.hdr.len <= IMSG_HEADER_SIZE)
log_warnx("short IMSG_WRITE_RESOLV_CONF");
- return;
- } else
+ else
priv_write_resolv_conf(ifi, imsg.data,
imsg.hdr.len - IMSG_HEADER_SIZE);
break;