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:
Aleksander Morgado
2016-04-13 11:39:21 +02:00
parent 62805a11f1
commit 650f4a2e91

View File

@@ -190,7 +190,7 @@ match_info_to_ip4_addr (GMatchInfo *match_info,
if (!bin || bin_len != 4) if (!bin || bin_len != 4)
goto done; goto done;
*out_addr = GUINT32_TO_BE (*((guint32 *) bin)); *out_addr = GUINT32_SWAP_LE_BE (*((guint32 *) bin));
success = TRUE; success = TRUE;
done: done: