From: pcarana Date: Wed, 8 Jan 2020 22:46:24 +0000 (-0600) Subject: Fix bug: segfault when validating update notification for 2nd time. X-Git-Tag: v1.2.0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=462983fca6f2ebe004b63363a369eb6e5cf29411;p=thirdparty%2FFORT-validator.git Fix bug: segfault when validating update notification for 2nd time. --- diff --git a/src/rrdp/rrdp_parser.c b/src/rrdp/rrdp_parser.c index 922d51c6..661412d8 100644 --- a/src/rrdp/rrdp_parser.c +++ b/src/rrdp/rrdp_parser.c @@ -303,7 +303,7 @@ parse_long(xmlTextReaderPtr reader, char const *attr, unsigned long *result) if (errno) { xmlFree(xml_value); pr_errno(errno, "RRDP file: Invalid long value '%s'", - xml_value); + xml_value); return -EINVAL; } xmlFree(xml_value); @@ -466,7 +466,6 @@ parse_doc_data(xmlTextReaderPtr reader, bool parse_hash, bool hash_req, end: /* Function called just to do the validation */ if (data == NULL) { - doc_data_init(data); free(hash); free(uri); return 0;