changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: sshnet: allow 0 port

changeset 7120: 415689b1872a
parent 7119: 47b33e9a0878
child 7121: a69ea0d34942
author: cinap_lenrek@felloff.net
date: Tue, 02 Apr 2019 17:51:15 +0200
files: sys/src/cmd/sshnet.c
description: sshnet: allow 0 port
     1.1--- a/sys/src/cmd/sshnet.c
     1.2+++ b/sys/src/cmd/sshnet.c
     1.3@@ -744,7 +744,7 @@ cswrite(Req *r)
     1.4 		return;
     1.5 	}
     1.6 	port = ndbfindport(f[2]);
     1.7-	if(port <= 0){
     1.8+	if(port < 0){
     1.9 		free(s);
    1.10 		respond(r, "no translation found");
    1.11 		return;