summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inet.c b/src/inet.c
index 1f9bd0dd..226e5052 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -1793,7 +1793,7 @@ GSList *__connman_inet_ipv6_get_prefixes(struct nd_router_advert *hdr,
str = g_strdup_printf("%s/%d", prefix,
pinfo->nd_opt_pi_prefix_len);
- prefixes = g_slist_append(prefixes, str);
+ prefixes = g_slist_prepend(prefixes, str);
DBG("prefix %s", str);