diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-02-02 02:47:17 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-02-02 02:47:17 +0000 |
commit | b1245b413d97b63b86ba8a81b29e6f965815c947 (patch) | |
tree | e653ad6bd767d89f6e38201c7bd15890279a9ef3 /sbin | |
parent | 432415ce5352e2ce1d70c23f4c6f205072c093fa (diff) |
Dereference correct pointer. Fix crash when checking whether resolv.conf
should be written. Bad cut 'n paste.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 4ccb758abe0..5fc75992c6b 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.222 2013/02/01 23:43:33 florian Exp $ */ +/* $OpenBSD: dhclient.c,v 1.223 2013/02/02 02:47:16 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -296,7 +296,8 @@ routehandler(void) write_file("/etc/resolv.conf", O_WRONLY | O_CREAT | O_TRUNC | O_SYNC | O_EXLOCK, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, 0, 0, - client->new->resolv_conf, strlen(client->new->resolv_conf)); + client->active->resolv_conf, + strlen(client->active->resolv_conf)); return; |