Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2022 13:35:57 GMT
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fcba5123c126 - main - net/mpd5: let "red-port" accept zero remote port value
Message-ID:  <202202111335.21BDZvgg065801@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eugen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fcba5123c1263e2bb2ddc6f6b7e71424f62377d2

commit fcba5123c1263e2bb2ddc6f6b7e71424f62377d2
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2022-02-11 13:31:47 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2022-02-11 13:31:47 +0000

    net/mpd5: let "red-port" accept zero remote port value
    
    Import upstream r2446: allow to configre "any" remote port
    for port redirection rule as supported by libalias(3).
    
    PR:             261802
    Reported by:    Martin Birgmeier
---
 net/mpd5/Makefile          |  2 +-
 net/mpd5/files/patch-nat.c | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile
index 9e4ed26ee476..97f2a8fb013c 100644
--- a/net/mpd5/Makefile
+++ b/net/mpd5/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	mpd
 DISTVERSION=	5.9
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION}
 PKGNAMESUFFIX=	5
diff --git a/net/mpd5/files/patch-nat.c b/net/mpd5/files/patch-nat.c
new file mode 100644
index 000000000000..1c94022f260b
--- /dev/null
+++ b/net/mpd5/files/patch-nat.c
@@ -0,0 +1,13 @@
+Index: src/nat.c
+===================================================================
+--- src/nat.c	(revision 2445)
++++ src/nat.c	(revision 2446)
+@@ -192,7 +192,7 @@ NatSetCommand(Context ctx, int ac, const char *const a
+ 	  if (!inet_aton (av[5], &r_addr))
+ 	    Error("bad remote IP address \"%s\"", av[5]);
+ 	  rp = atoi(av[6]);
+-	  if (rp <= 0 || rp > 65535)
++	  if (rp < 0 || rp > 65535)
+ 	    Error("Incorrect remote port number \"%s\"", av[6]);
+ 	}
+ 	/* OK */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202111335.21BDZvgg065801>