Skip to content

Commit

Permalink
issue:Fix use after move
Browse files Browse the repository at this point in the history
addr used in m_family(addr.m_family) after it was
moved to ip_address(std::forwad<ip_addr>(addr))

Signed-off-by: Bashar Abdelgafer  <babdelgafer@nvidia.com>
  • Loading branch information
BasharRadya authored and root committed Jul 6, 2024
1 parent de3ddf3 commit 00f64f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/ip_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class ip_addr : public ip_address {
}

ip_addr(ip_addr &&addr)
: ip_address(std::forward<ip_address>(addr))
: ip_address(addr)
, m_family(addr.m_family)
{
}
Expand Down

0 comments on commit 00f64f2

Please sign in to comment.