mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 22:45:17 +00:00
migrate: detect xml incompatibility
Detected by Coverity. Bug introduced in 08106e2044 (unreleased). * src/conf/domain_conf.c (virDomainChannelDefCheckABIStability): Use correct sizeof operand.
This commit is contained in:
parent
278a050a52
commit
d391661ae4
@ -7269,7 +7269,8 @@ static bool virDomainChannelDefCheckABIStability(virDomainChrDefPtr src,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_GUESTFWD:
|
case VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_GUESTFWD:
|
||||||
if (memcmp(src->target.addr, dst->target.addr, sizeof(src->target.addr)) != 0) {
|
if (memcmp(src->target.addr, dst->target.addr,
|
||||||
|
sizeof(*src->target.addr)) != 0) {
|
||||||
char *saddr = virSocketFormatAddrFull(src->target.addr, true, ":");
|
char *saddr = virSocketFormatAddrFull(src->target.addr, true, ":");
|
||||||
char *daddr = virSocketFormatAddrFull(dst->target.addr, true, ":");
|
char *daddr = virSocketFormatAddrFull(dst->target.addr, true, ":");
|
||||||
virDomainReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virDomainReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user