]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: honor reportError parameter in virSocketAddrParseInternal
authorJim Fehlig <jfehlig@suse.com>
Mon, 26 Mar 2018 19:00:25 +0000 (13:00 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 5 Apr 2018 20:46:49 +0000 (14:46 -0600)
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/util/virsocketaddr.c

index 95b527436851571fbb8c2de8df7d93197b5cceee..31a740cb89898cb91e65f8942a3357de73473b3d 100644 (file)
@@ -107,7 +107,8 @@ virSocketAddrParseInternal(struct addrinfo **res,
     int err;
 
     if (val == NULL) {
-        virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
+        if (reportError)
+            virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
         return -1;
     }