diff options
author | David Shaw <[email protected]> | 2002-08-14 22:48:28 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-08-14 22:48:28 +0000 |
commit | 9ad0a6550bc731d960b260e9712d306b9cb18c86 (patch) | |
tree | c4be14b74ab3be8cb2670b0e80bf51d0665ec3e9 /g10/hkp.c | |
parent | * encode.c (encode_simple): Fix problem with using compression algo 2 and (diff) | |
download | gnupg-9ad0a6550bc731d960b260e9712d306b9cb18c86.tar.gz gnupg-9ad0a6550bc731d960b260e9712d306b9cb18c86.zip |
* hkp.c (parse_hkp_index): Properly handle really large keys (5 digit key
length) in HKP searches.
Diffstat (limited to 'g10/hkp.c')
-rw-r--r-- | g10/hkp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -279,8 +279,8 @@ parse_hkp_index(IOBUF buffer,char *line) certain unchanging landmarks, we can't reliably parse the response. */ if(open && ascii_memcasecmp(line,"</pre>",6)!=0 && - ascii_memcasecmp(line,"pub ",5)!=0 && - ascii_memcasecmp(line," ",5)!=0) + ascii_memcasecmp(line,"pub ",4)!=0 && + ascii_memcasecmp(line," ",4)!=0) { m_free(key); m_free(uid); @@ -313,7 +313,7 @@ parse_hkp_index(IOBUF buffer,char *line) ret=1; } - if(strncmp(line," ",5)!=0) + if(strncmp(line," ",4)!=0) { revoked=0; 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; |