#273 getcert: add NULL check to duplicate string compare
Merged 3 months ago by rcritten. Opened 3 months ago by rcritten.
rcritten/certmonger issue_269  into  master

file modified
+1 -1
@@ -497,7 +497,7 @@ 

  			printf(_("No response received from %s service.\n"),

  			       CM_DBUS_NAME);

  		}

- 		if (strcmp(err.name, "org.fedorahosted.certmonger.duplicate") == 0) {

+ 		if ((err.name != NULL) && strcmp(err.name, "org.fedorahosted.certmonger.duplicate") == 0) {

  			exit(2);

  		}

  		exit(1);

Pull-Request has been merged by rcritten

3 months ago
Metadata