summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-04-13 11:39:21 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-04-13 11:39:24 +0200
commit650f4a2e911e5d626e1c9d365437c7e1b2191fcc (patch)
treec14db3f9cc18f8accafcbccb36e0a44f00787989
parent62805a11f1cfbd92c36cb8215f2451f5018873c1 (diff)
downloadModemManager-650f4a2e911e5d626e1c9d365437c7e1b2191fcc.tar.gz
huawei: fix reading IPv4 address in BE systems
Tested by: <than@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=94777
-rw-r--r--plugins/huawei/mm-modem-helpers-huawei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/huawei/mm-modem-helpers-huawei.c b/plugins/huawei/mm-modem-helpers-huawei.c
index 87a54e429..0e0e046b0 100644
--- a/plugins/huawei/mm-modem-helpers-huawei.c
+++ b/plugins/huawei/mm-modem-helpers-huawei.c
@@ -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: