aboutsummaryrefslogtreecommitdiffstats
path: root/g10/hkp.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/hkp.c')
-rw-r--r--g10/hkp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/hkp.c b/g10/hkp.c
index 77739e765..e1dd5d26d 100644
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -337,6 +337,12 @@ parse_hkp_index(IOBUF buffer,char *line)
{
int uidindex=0;
+ if(line==NULL)
+ {
+ uid=m_strdup("Key index corrupted");
+ return ret;
+ }
+
/* All that's left is the user name. Strip off anything
<between brackets> and de-urlencode it. */