diff options
| author | Michael Biebl <biebl@debian.org> | 2018-10-30 10:26:10 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-10-30 10:26:10 +0100 |
| commit | bd8ab7e82b1ae4e8899b30a59a7b35ba009344ea (patch) | |
| tree | 83691f38efeef4d5dd7a85c0893fa8a54274728f /shared/nm-utils/nm-compat.c | |
| parent | c15221a34c0af3a5b2c03dfe80c2a9841acefb03 (diff) | |
| parent | 3cdef184c37fa2c152f8542c6107f8a623735a1c (diff) | |
Merge branch 'master' into stretch-backports
Diffstat (limited to 'shared/nm-utils/nm-compat.c')
| -rw-r--r-- | shared/nm-utils/nm-compat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/nm-utils/nm-compat.c b/shared/nm-utils/nm-compat.c index 90328c06..aa7c42f1 100644 --- a/shared/nm-utils/nm-compat.c +++ b/shared/nm-utils/nm-compat.c @@ -60,7 +60,8 @@ _get_keys (NMSettingVpn *setting, if (len) { g_ptr_array_sort (a, nm_strcmp_p); g_ptr_array_add (a, NULL); - keys = g_memdup (a->pdata, a->len * sizeof (gpointer)); + keys = g_malloc (a->len * sizeof (gpointer)); + memcpy (keys, a->pdata, a->len * sizeof (gpointer)); /* we need to cache the keys *somewhere*. */ g_object_set_qdata_full (G_OBJECT (setting), |