aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/hkp.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 708bd1211..d08368550 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-14 David Shaw <[email protected]>
+
+ * hkp.c (parse_hkp_index): Properly handle really large keys
+ (5 digit key length) in HKP searches.
+
2002-08-13 David Shaw <[email protected]>
* encode.c (encode_simple): Fix problem with using compression
diff --git a/g10/hkp.c b/g10/hkp.c
index 234a57835..a680d56f3 100644
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -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;