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:
nsayer 2002-08-22 06:19:07 +00:00
parent e537a06c59
commit 60fe3b5542
1 changed files with 0 additions and 4 deletions

View File

@ -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