mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
portfwd validation was sometimes not picking up a blank source port
[originally from svn r5319]
This commit is contained in:
parent
346907478d
commit
98d342a62a
2
config.c
2
config.c
@ -718,7 +718,7 @@ static void portfwd_handler(union control *ctrl, void *dlg,
|
|||||||
str[i++] = type;
|
str[i++] = type;
|
||||||
|
|
||||||
dlg_editbox_get(pfd->sourcebox, dlg, str+i, sizeof(str) - i);
|
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");
|
dlg_error_msg(dlg, "You need to specify a source port number");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user