diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-08-01 15:52:16 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-08-01 15:52:16 +0000 |
commit | e5e2e0ac81fa500e8693011d34e467fec05259b6 (patch) | |
tree | 1cba2848ceaa7f6ef6da7f82927748a0475e72ea /sbin | |
parent | 75532bdb153f63a353fdcbc5d647364d1f0223d1 (diff) |
Don't leak resolv.conf contents.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/kroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index e5952a14686..f68f57f523d 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.166 2019/07/30 12:48:27 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.167 2019/08/01 15:52:15 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -928,6 +928,7 @@ priv_propose(char *name, int ioctlfd, struct imsg_propose *imsg, if ((ifr.ifr_flags & IFXF_AUTOCONF4) == 0) return; + free(*resolv_conf); *resolv_conf = set_resolv_conf(name, proposal->rtsearch, proposal->rtsearch_len, |