summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2013-05-10 18:59:22 +0000
committerkrw <krw@openbsd.org>2013-05-10 18:59:22 +0000
commit98cee6b902fed9244b91e019361830c55bbfed67 (patch)
treebbf1a120d3dc69262691b005f29472622889bf9a
parentbail if device_lookup doesn't find anything; brings vscsi(4) (diff)
downloadwireguard-openbsd-98cee6b902fed9244b91e019361830c55bbfed67.tar.xz
wireguard-openbsd-98cee6b902fed9244b91e019361830c55bbfed67.zip
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@
-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;