#67 Fix a potential uninitialized memory bug
Merged 7 years ago by nalin. Opened 7 years ago by nalin.
nalin/certmonger uninit  into  master

file modified
+1
@@ -275,6 +275,7 @@ 

  			     i++) {

  				c = talloc_ptrtype(ret, c);

  				if (c != NULL) {

+ 					memset(c, 0, sizeof(*c));

  					cert = cm_json_n(nickcerts, i);

  					if (cm_json_type(cert) != cm_json_type_object) {

  						continue;

Clear the storage for a certificate that we're parsing out of a JSON document before adding it to the result list.

Pull-Request has been merged by nalin

7 years ago
Metadata