From 09877303014e0297d2c2707be5167d932cc3f425 Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Mon, 26 Mar 2018 13:00:25 -0600 Subject: [PATCH] util: honor reportError parameter in virSocketAddrParseInternal Signed-off-by: Jim Fehlig Reviewed-by: John Ferlan --- src/util/virsocketaddr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/virsocketaddr.c b/src/util/virsocketaddr.c index 95b5274368..31a740cb89 100644 --- a/src/util/virsocketaddr.c +++ b/src/util/virsocketaddr.c @@ -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; }