sshnet: allow 0 port

This commit is contained in:
cinap_lenrek 2019-04-02 17:51:15 +02:00
parent dd8af39bce
commit d4033c31bb

View file

@ -744,7 +744,7 @@ cswrite(Req *r)
return;
}
port = ndbfindport(f[2]);
if(port <= 0){
if(port < 0){
free(s);
respond(r, "no translation found");
return;