1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

portfwd validation was sometimes not picking up a blank source port

[originally from svn r5319]
This commit is contained in:
Jacob Nevins 2005-02-16 12:13:27 +00:00
parent 346907478d
commit 98d342a62a

View File

@ -718,7 +718,7 @@ static void portfwd_handler(union control *ctrl, void *dlg,
str[i++] = type;
dlg_editbox_get(pfd->sourcebox, dlg, str+i, sizeof(str) - i);
if (!str[2]) {
if (!str[i]) {
dlg_error_msg(dlg, "You need to specify a source port number");
return;
}