Skip to content

Commit e83d8d9

Browse files
anchaocfriedt
authored andcommitted
net: dhcpv4_server: correct DHCPv4 lock scope for lease()
DHCPv4 server lease should release mutex correctly Signed-off-by: chao an <[email protected]>
1 parent 58a21bf commit e83d8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/dhcpv4/dhcpv4_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ int net_dhcpv4_server_foreach_lease(struct net_if *iface,
17711771
}
17721772
}
17731773

1774-
return 0;
1774+
goto out;
17751775
}
17761776

17771777
for (int i = 0; i < ARRAY_SIZE(server_ctx); i++) {

0 commit comments

Comments
 (0)