Author: glebius Date: Mon Nov 28 08:12:37 2011 New Revision: 228051 URL: http://svn.freebsd.org/changeset/base/228051
Log: MFhead r227901: Fix parsing of redirect_addr argument. PR: kern/162739 Approved by: re (kib) Modified: stable/9/sbin/ipfw/nat.c Directory Properties: stable/9/sbin/ipfw/ (props changed) Modified: stable/9/sbin/ipfw/nat.c ============================================================================== --- stable/9/sbin/ipfw/nat.c Mon Nov 28 08:10:12 2011 (r228050) +++ stable/9/sbin/ipfw/nat.c Mon Nov 28 08:12:37 2011 (r228051) @@ -345,11 +345,12 @@ setup_redir_addr(char *buf, int *ac, cha space = sizeof(struct cfg_redir); /* Extract local address. */ - if ((sep = strtok(**av, ",")) != NULL) { + if (strchr(**av, ',') != NULL) { struct cfg_spool *spool; /* Setup LSNAT server pool. */ r->laddr.s_addr = INADDR_NONE; + sep = strtok(**av, ","); while (sep != NULL) { spool = (struct cfg_spool *)buf; space += sizeof(struct cfg_spool); _______________________________________________ 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"