From: Wouter Wijngaards Date: Wed, 29 Sep 2010 08:24:30 +0000 (+0000) Subject: Parse error does not go to insecure. X-Git-Tag: release-1.4.7rc1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=322b68dbf4562f971fa8c7131a33a0c4542e4c80;p=thirdparty%2Funbound.git Parse error does not go to insecure. git-svn-id: file:///svn/unbound/trunk@2264 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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; }