No STATUS_CODE option from the server means "success", but we are now
using stack garbage, which is usually not "success".
-/* $OpenBSD: engine.c,v 1.20 2024/07/10 12:52:51 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.21 2024/07/11 09:39:13 florian Exp $ */
/*
* Copyright (c) 2017, 2021, 2024 Florian Obser <florian@openbsd.org>
struct dhcp_iaprefix iaprefix;
struct in6_addr mask;
int i;
- uint16_t status_code;
+ uint16_t status_code = DHCP_STATUS_SUCCESS;
char ntopbuf[INET6_ADDRSTRLEN], *visbuf;
while (len >= sizeof(struct dhcp_option_hdr)) {