shithub: riscv

Download patch

ref: d4033c31bb1707cc4d2c6c394a6e1793bc1d6d04
parent: dd8af39bceb201eb68fc3276a1e12a4ebcac74c0
author: cinap_lenrek <[email protected]>
date: Tue Apr 2 13:51:15 EDT 2019

sshnet: allow 0 port

--- a/sys/src/cmd/sshnet.c
+++ b/sys/src/cmd/sshnet.c
@@ -744,7 +744,7 @@
 		return;
 	}
 	port = ndbfindport(f[2]);
-	if(port <= 0){
+	if(port < 0){
 		free(s);
 		respond(r, "no translation found");
 		return;