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

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

Closes: #897020.
parent 729e793f
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)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment