ankohuu opened a new pull request, #18674:
URL: https://github.com/apache/nuttx/pull/18674
## Summary
Release nat_lock before returning -ENOENT from the IPv4
and IPv6 outbound NAT paths when NAT entry creation fails.
## Impact
Bugfix
## Testing
### Config
```
~/P/nuttx [fix/nat-outbound-unlock] > rg -i nat .config
960:CONFIG_NET_NAT=y
961:CONFIG_NET_NAT44=y
962:CONFIG_NET_NAT44_FULL_CONE=y
963:# CONFIG_NET_NAT44_SYMMETRIC is not set
964:CONFIG_NET_NAT66=y
965:CONFIG_NET_NAT66_FULL_CONE=y
966:# CONFIG_NET_NAT66_SYMMETRIC is not set
967:CONFIG_NET_NAT_HASH_BITS=5
968:CONFIG_NET_NAT_TCP_EXPIRE_SEC=86400
969:CONFIG_NET_NAT_UDP_EXPIRE_SEC=240
970:CONFIG_NET_NAT_ICMP_EXPIRE_SEC=60
971:CONFIG_NET_NAT_ICMPv6_EXPIRE_SEC=60
972:CONFIG_NET_NAT_ENTRY_RECLAIM_SEC=3600
```
Builded successfully and launched NSH.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]