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; return;
} }
port = ndbfindport(f[2]); port = ndbfindport(f[2]);
if(port <= 0){ if(port < 0){
free(s); free(s);
respond(r, "no translation found"); respond(r, "no translation found");
return; return;