masc2008 commented on code in PR #3295:
URL: https://github.com/apache/nuttx-apps/pull/3295#discussion_r2672411106


##########
system/iptables/iptables.c:
##########
@@ -506,7 +506,7 @@ int main(int argc, FAR char *argv[])
   else
 #endif
 #ifdef CONFIG_NET_NAT
-  if (strcmp(args.table, TABLE_NAME_NAT) == 0)
+  if (args.table == NULL || strcmp(args.table, TABLE_NAME_NAT) == 0)

Review Comment:
   this will be more clear to the standard behavior, thanks!



-- 
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]

Reply via email to