diff options
author | nsayer <nsayer@FreeBSD.org> | 2002-08-22 06:19:07 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2002-08-22 06:19:07 +0000 |
commit | 3781c72cd943aa2aa6c12249440949c0e220a0e7 (patch) | |
tree | 92bacbc20ec9a71aecd3e26cf4b1d92b0e4d1c33 /crypto/telnet/libtelnet | |
parent | 68f14f0597e4f61a564e748b21c7a8926b7b97da (diff) | |
download | FreeBSD-src-3781c72cd943aa2aa6c12249440949c0e220a0e7.zip FreeBSD-src-3781c72cd943aa2aa6c12249440949c0e220a0e7.tar.gz |
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
Diffstat (limited to 'crypto/telnet/libtelnet')
-rw-r--r-- | crypto/telnet/libtelnet/pk.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/telnet/libtelnet/pk.c b/crypto/telnet/libtelnet/pk.c index fc41aed..044e9b9 100644 --- a/crypto/telnet/libtelnet/pk.c +++ b/crypto/telnet/libtelnet/pk.c @@ -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 |