From: florian Date: Wed, 5 Jun 2024 10:48:56 +0000 (+0000) Subject: Do not try to configure an interface with prefix length 0. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7e484d934f2cfc47ad32cb802b6e50526ef0b246;p=openbsd Do not try to configure an interface with prefix length 0. --- diff --git a/sbin/dhcp6leased/engine.c b/sbin/dhcp6leased/engine.c index 1db15432655..9c2fb245e96 100644 --- 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 @@ -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;