summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dispatch.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-05-10 18:59:23 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-05-10 18:59:23 +0000
commit5f180ebf48e984f15fef109fe0e087f65bd2f2bb (patch)
tree1c86fec4f9a909b06cb32f326b367b7c5974239c /sbin/dhclient/dispatch.c
parent57eae5cd92deaeea84b182f0dd9b0a5d7c29e4cf (diff)
Fix subnet check. Check our rdomain against the rdomains of the other
interfaces and not against our own. Problem noted, fix tested and ok mikeb@
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r--sbin/dhclient/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index 33a1c40ca0a..7d29ea6b40e 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.78 2013/05/02 16:35:27 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.79 2013/05/10 18:59:22 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -417,7 +417,7 @@ subnet_exists(struct client_lease *l)
if (ifa->ifa_addr->sa_family != AF_INET)
continue;
- hisrdomain = get_rdomain(ifi->name);
+ hisrdomain = get_rdomain(ifa->ifa_name);
if (hisrdomain != myrdomain)
continue;