aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-10-29 11:46:46 +0000
committerJoão Valverde <j@v6e.pt>2023-10-29 15:17:31 +0000
commite12c89f3cafb43311ea25924b4beaa68a5855f26 (patch)
treea017ce5528ed57834a84e69e24c95c83ba1a3596 /ui/qt
parentca392f6ddce64081c39538592d18dcf474ffdf59 (diff)
IPv4: Fix wrong endianness displaying source/dest addresses
Fixes 0d46d9a60a89b8d2fd37c91515f3c8153b5e6b99.
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/address_editor_frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/address_editor_frame.cpp b/ui/qt/address_editor_frame.cpp
index 3ccacb370d..e1e5582e5f 100644
--- a/ui/qt/address_editor_frame.cpp
+++ b/ui/qt/address_editor_frame.cpp
@@ -70,7 +70,7 @@ QString AddressEditorFrame::addressToString(const FieldInformation& finfo)
// the currently resolved version, if resolution is
// available and enabled. We want the unresolved string.
ipv4 = fvalue_get_ipv4(finfo.fieldInfo()->value);
- set_address(&addr, AT_IPv4, 4, &ipv4->addr);
+ set_address_ipv4(&addr, ipv4);
return gchar_free_to_qstring(address_to_str(NULL, &addr));
case FT_IPv6:
ipv6 = fvalue_get_ipv6(finfo.fieldInfo()->value);