File 09877303-virSocketAddrParseInternal.patch of Package libvirt.8367

commit 09877303014e0297d2c2707be5167d932cc3f425
Author: Jim Fehlig <jfehlig@suse.com>
Date:   Mon Mar 26 13:00:25 2018 -0600

    util: honor reportError parameter in virSocketAddrParseInternal
    
    Signed-off-by: Jim Fehlig <jfehlig@suse.com>
    Reviewed-by: John Ferlan <jferlan@redhat.com>

Index: libvirt-4.0.0/src/util/virsocketaddr.c
===================================================================
--- libvirt-4.0.0.orig/src/util/virsocketaddr.c
+++ libvirt-4.0.0/src/util/virsocketaddr.c
@@ -107,7 +107,8 @@ virSocketAddrParseInternal(struct addrin
     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;
     }