[Open-scap] [PATCH] Uncommented out section of code and fixed small mistake.

Josh Adams jadams at tresys.com
Tue Jun 15 14:10:34 UTC 2010


---
 src/XCCDF/result.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/XCCDF/result.c b/src/XCCDF/result.c
index d928bb5..b324ebd 100644
--- a/src/XCCDF/result.c
+++ b/src/XCCDF/result.c
@@ -170,7 +170,7 @@ struct xccdf_identity *xccdf_identity_new(void)
 void xccdf_identity_free(struct xccdf_identity *identity)
 {
 	if (identity != NULL) {
-		//oscap_free(identity->name);
+		oscap_free(identity->name);
 		oscap_free(identity);
 	}
 }
@@ -449,7 +449,7 @@ void xccdf_result_to_dom(struct xccdf_result *result, xmlNode *result_node, xmlD
 		xmlNewProp(result_node, BAD_CAST "start-time", BAD_CAST timestamp);
 	}
 
-	time_t end = xccdf_result_get_start_time(result);
+	time_t end = xccdf_result_get_end_time(result);
 	if (end) {
 		struct tm *lt = localtime(&end);
 		char timestamp[] = "yyyy-mm-ddThh:mm:ss";
-- 
1.7.0.1




More information about the Open-scap-list mailing list