artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bb6892
)
Do not try to configure an interface with prefix length 0.
author
florian
<florian@openbsd.org>
Wed, 5 Jun 2024 10:48:56 +0000
(10:48 +0000)
committer
florian
<florian@openbsd.org>
Wed, 5 Jun 2024 10:48:56 +0000
(10:48 +0000)
sbin/dhcp6leased/engine.c
patch
|
blob
|
history
diff --git
a/sbin/dhcp6leased/engine.c
b/sbin/dhcp6leased/engine.c
index
1db1543
..
9c2fb24
100644
(file)
--- a/
sbin/dhcp6leased/engine.c
+++ b/
sbin/dhcp6leased/engine.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: engine.c,v 1.
8 2024/06/04 15:48:47
florian Exp $ */
+/* $OpenBSD: engine.c,v 1.
9 2024/06/05 10:48:56
florian Exp $ */
/*
* Copyright (c) 2017, 2021, 2024 Florian Obser <florian@openbsd.org>
@@
-1296,6
+1296,9
@@
send_configure_interface(struct iface_pd_conf *pd_conf, struct prefix *pd)
int i;
char ntopbuf[INET6_ADDRSTRLEN];
+ if (pd->prefix_len == 0)
+ return;
+
if (strcmp(pd_conf->name, "reserve") == 0)
return;