mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 21:15:03 -05:00
Ahem. This time high-half characters really _do_ work in username
and password... [originally from svn r468]
This commit is contained in:
parent
5f93b919ac
commit
229245f384
6
ssh.c
6
ssh.c
@ -500,7 +500,8 @@ static void ssh_protocol(unsigned char *in, int inlen, int ispkt) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40) {
|
if (((c >= ' ' && c <= '~') ||
|
||||||
|
((unsigned char)c >= 160)) && pos < 40) {
|
||||||
username[pos++] = c;
|
username[pos++] = c;
|
||||||
c_write(&c, 1);
|
c_write(&c, 1);
|
||||||
}
|
}
|
||||||
@ -584,7 +585,8 @@ static void ssh_protocol(unsigned char *in, int inlen, int ispkt) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40)
|
if (((c >= ' ' && c <= '~') ||
|
||||||
|
((unsigned char)c >= 160)) && pos < 40)
|
||||||
password[pos++] = c;
|
password[pos++] = c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user