1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

util: honor reportError parameter in virSocketAddrParseInternal

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
Jim Fehlig 2018-03-26 13:00:25 -06:00
parent cd9bbb7fad
commit 0987730301

View 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;
}