huawei: fix reading IPv4 address in BE systems
Tested by: <than@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=94777
This commit is contained in:
@@ -190,7 +190,7 @@ match_info_to_ip4_addr (GMatchInfo *match_info,
|
||||
if (!bin || bin_len != 4)
|
||||
goto done;
|
||||
|
||||
*out_addr = GUINT32_TO_BE (*((guint32 *) bin));
|
||||
*out_addr = GUINT32_SWAP_LE_BE (*((guint32 *) bin));
|
||||
success = TRUE;
|
||||
|
||||
done:
|
||||
|
Reference in New Issue
Block a user