diff options
author | 2013-12-04 19:44:41 +0000 | |
---|---|---|
committer | 2013-12-04 19:44:41 +0000 | |
commit | 851ab579847e2ccd5ee5a885a2a21963663b4983 (patch) | |
tree | cb23ba6df6c4745002528e6f80eba946a17535fd | |
parent | More memcpy() stylistic repairs and size checks. (diff) | |
download | wireguard-openbsd-851ab579847e2ccd5ee5a885a2a21963663b4983.tar.xz wireguard-openbsd-851ab579847e2ccd5ee5a885a2a21963663b4983.zip |
Oops. Missed a chunk. Give up on classless static routes if
size of mask is > 4 bytes. Don't keep looping on the data
hoping it gets better.
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 5170f5a3a69..307ff59a629 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.270 2013/12/04 19:39:50 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.271 2013/12/04 19:44:41 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -2449,7 +2449,7 @@ void add_classless_static_routes(int rdomain, bits = classless_static_routes->data[i]; bytes = (bits + 7) / 8; if (bytes > 4) - continue; + return; i++; |