1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-23 15:07:03 +01:00

* hkp.c (parse_hkp_index): Properly handle really large keys (5 digit key

length) in HKP searches.
This commit is contained in:
David Shaw 2002-08-14 22:48:28 +00:00
parent 1111da19a8
commit 9ad0a6550b
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-08-14 David Shaw <dshaw@jabberwocky.com>
* hkp.c (parse_hkp_index): Properly handle really large keys
(5 digit key length) in HKP searches.
2002-08-13 David Shaw <dshaw@jabberwocky.com> 2002-08-13 David Shaw <dshaw@jabberwocky.com>
* encode.c (encode_simple): Fix problem with using compression * encode.c (encode_simple): Fix problem with using compression

View File

@ -279,8 +279,8 @@ parse_hkp_index(IOBUF buffer,char *line)
certain unchanging landmarks, we can't reliably parse the certain unchanging landmarks, we can't reliably parse the
response. */ response. */
if(open && ascii_memcasecmp(line,"</pre>",6)!=0 && if(open && ascii_memcasecmp(line,"</pre>",6)!=0 &&
ascii_memcasecmp(line,"pub ",5)!=0 && ascii_memcasecmp(line,"pub ",4)!=0 &&
ascii_memcasecmp(line," ",5)!=0) ascii_memcasecmp(line," ",4)!=0)
{ {
m_free(key); m_free(key);
m_free(uid); m_free(uid);
@ -313,7 +313,7 @@ parse_hkp_index(IOBUF buffer,char *line)
ret=1; ret=1;
} }
if(strncmp(line," ",5)!=0) if(strncmp(line," ",4)!=0)
{ {
revoked=0; revoked=0;
m_free(key); m_free(key);
@ -323,7 +323,7 @@ parse_hkp_index(IOBUF buffer,char *line)
} }
} }
if(ascii_memcasecmp(line,"pub ",5)==0) if(ascii_memcasecmp(line,"pub ",4)==0)
{ {
char *tok,*temp; char *tok,*temp;