Author: glebius
Date: Wed Jun 22 08:20:01 2011
New Revision: 223416
URL: http://svn.freebsd.org/changeset/base/223416

Log:
  One more braino from me.
  
  Pointy hat to:        glebius
  Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

Modified:
  head/sbin/ipfw/nat.c

Modified: head/sbin/ipfw/nat.c
==============================================================================
--- head/sbin/ipfw/nat.c        Wed Jun 22 08:09:50 2011        (r223415)
+++ head/sbin/ipfw/nat.c        Wed Jun 22 08:20:01 2011        (r223416)
@@ -785,8 +785,9 @@ ipfw_config_nat(int ac, char **av)
                        len += estimate_redir_port(&ac1, &av1);
                        av1 += 2; ac1 -= 2;
                        /* Skip optional remoteIP/port */
-                       if (ac1 != 0 && isdigit(**av1))
+                       if (ac1 != 0 && isdigit(**av1)) {
                                av1++; ac1--;
+                       }
                        break;
                case TOK_REDIR_PROTO:
                        if (ac1 < 2)
@@ -795,10 +796,12 @@ ipfw_config_nat(int ac, char **av)
                        len += sizeof(struct cfg_redir);
                        av1 += 2; ac1 -= 2;
                        /* Skip optional remoteIP/port */
-                       if (ac1 != 0 && isdigit(**av1))
+                       if (ac1 != 0 && isdigit(**av1)) {
                                av1++; ac1--;
-                       if (ac1 != 0 && isdigit(**av1))
+                       }
+                       if (ac1 != 0 && isdigit(**av1)) {
                                av1++; ac1--;
+                       }
                        break;
                default:
                        errx(EX_DATAERR, "unrecognised option ``%s''", av1[-1]);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to