Fix wrong status in reply to DHCP6REQUEST.

If we jump to label request_no_address, address_assigned
has an undefined value, and maybe the wrong status is returned.
This commit is contained in:
Simon Kelley committed 2025-07-23 21:04:06 +01:00
1 parent d976d94e3d
commit e775264539
1 file changed
+2 -1
+2 -1
View File
@@ -643,7 +643,7 @@ static int dhcp6_no_relay(struct state *state, int msg_type, unsigned char *inbu
case DHCP6SOLICIT:
{
int address_assigned = 0;
int address_assigned;
/* tags without all prefix-class tags */
struct dhcp_netid *solicit_tags;
struct dhcp_context *c;
@@ -662,6 +662,7 @@ static int dhcp6_no_relay(struct state *state, int msg_type, unsigned char *inbu
request_no_address:
solicit_tags = tagif;
address_assigned = 0;
if (ignore)
return 0;