Commit 338b1fa7 authored by Guilhem Moulin's avatar Guilhem Moulin
Browse files

Re-enable usage of '-s/-p' in client mode.

Closes: #897020.
parent 729e793f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
netcat-openbsd (1.190-2) UNRELEASED; urgency=low

  * Re-enable usage of '-s' (local source address) and '-p' (local source
    port) in client mode (when '-l' is unset).  Regression introduced in
    from a Debian-specificat patch added in 1.187-1.  Closes: #897020.

 -- Guilhem Moulin <guilhem@debian.org>  Fri, 27 Apr 2018 16:34:02 +0200

netcat-openbsd (1.190-1) unstable; urgency=low

  * New upstream release (from OpenBSD 6.3)
+1 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ Subject: misc failures and features
 		host = argv[0];
-		uport = argv[1];
+ 		uport = &argv[1];
+		if (pflag || sflag)
+		if (lflag && (pflag || sflag))
+			usage(1);
 	} else
 		usage(1);