mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +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;
|
||||
|
||||
if (val == NULL) {
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||
if (reportError)
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user