Repost: [PATCH] mport match port parsing broken: fix

Harald Welte laforge@gnumonks.org
Mon, 15 Oct 2001 17:54:47 +0200


On Fri, Oct 05, 2001 at 06:15:45PM +0200, Daniel Roethlisberger wrote:
> 
> Original post was on Sept 24th, I'm resending it because there was
> no echo about it, and nothing went into CVS.
> 
> ===
> 
> mport match parse_port() fix
> 
> The mport match extension was broken in iptables-1.2.3 and CVS:
> all ports and ranges were always parsed as port number 1. The
> return value of string_to_number was assigned to portnum, even
> though string_to_number returns the result via the fourth pointer
> argument, and not as return value.

thanks, patch applied.

> Cheers,
> Dan

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)