mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +00: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:
parent
cd9bbb7fad
commit
0987730301
@ -107,7 +107,8 @@ virSocketAddrParseInternal(struct addrinfo **res,
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (val == NULL) {
|
if (val == NULL) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
if (reportError)
|
||||||
|
virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user