From 322b68dbf4562f971fa8c7131a33a0c4542e4c80 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 29 Sep 2010 08:24:30 +0000 Subject: [PATCH] Parse error does not go to insecure. git-svn-id: file:///svn/unbound/trunk@2264 be551aaa-1e26-0410-a405-d3ace91eadb9 --- smallapp/unbound-anchor.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index 96c1bab44..b6ae4cd5e 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -1259,13 +1259,19 @@ handle_keydigest(struct xml_data* data, const XML_Char **atts) data->use_key = 0; if(find_att(atts, "validFrom")) { time_t from = xml_convertdate(find_att(atts, "validFrom")); - if(from == 0) return; + if(from == 0) { + if(verb) printf("error: xml cannot be parsed\n"); + exit(0); + } if(data->date < from) return; } if(find_att(atts, "validUntil")) { time_t until = xml_convertdate(find_att(atts, "validUntil")); - if(until == 0) return; + if(until == 0) { + if(verb) printf("error: xml cannot be parsed\n"); + exit(0); + } if(data->date > until) return; } -- 2.47.2