1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Sun Jan 3 15:28:44 CET 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-01-03 14:33:35 +00:00
parent d6fa538a95
commit e3e8d9b92f
15 changed files with 92 additions and 29 deletions

View file

@ -723,16 +723,13 @@ is_weak_key ( const byte *key )
/* binary search in the weak key table */
left = 0;
right = 63;
while(1)
while(left <= right)
{
middle = (left + right) / 2;
if ( !(cmp_result=memcmp(work, weak_keys[middle], 8)) )
return -1;
if ( left == right )
break;
if ( cmp_result > 0 )
left = middle + 1;
else