mirror of
https://github.com/sheumann/telnetd.git
synced 2025-02-16 13:30:34 +00:00
Encrypted strings (after hex decoding) aren't null terminated, because
0 might simply be part of the ciphertext. PR: bin/40266 Submitted by: andr@dgap.mipt.ru MFC after: 3 days git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@102250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
e537a06c59
commit
60fe3b5542
@ -249,10 +249,6 @@ pk_decode(char *in, char *out, DesData *key)
|
||||
memset(&i,0,sizeof(i));
|
||||
memset(buf,0,sizeof(buf));
|
||||
for (l=0,op=0;l<strlen(in)/2;l++,op+=2) {
|
||||
if(in[op] == '0' && in[op+1] == '0') {
|
||||
buf[l] = '\0';
|
||||
break;
|
||||
}
|
||||
if (in[op] > '9')
|
||||
n1 = in[op] - 'A' + 10;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user