<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/shared/nm-utils/nm-compat.c, branch lr/python3</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>shared/compat: minor refactoring of compat code</title>
<updated>2017-12-22T14:53:22+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-12-22T14:35:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8342a66cb6d8b7f19950370a83cc74bf6638a526'/>
<id>8342a66cb6d8b7f19950370a83cc74bf6638a526</id>
<content type='text'>
Don't cache the entire GPtrArray, just the plain strv.
Also, use parentheses for sizeof().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't cache the entire GPtrArray, just the plain strv.
Also, use parentheses for sizeof().
</pre>
</div>
</content>
</entry>
<entry>
<title>shared/compat: Fix memory handling of nm_setting_vpn_get_*_keys (v2)</title>
<updated>2017-12-22T14:53:05+00:00</updated>
<author>
<name>Jan Alexander Steffens (heftig)</name>
<email>jan.steffens@gmail.com</email>
</author>
<published>2017-12-21T19:36:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=76207194d15ebc50ca6d247da78a03de9c34f47f'/>
<id>76207194d15ebc50ca6d247da78a03de9c34f47f</id>
<content type='text'>
The compat implementations return a (transfer none) strv instead of a
(transfer container) one. This has caused double frees in nm-applet:
https://bugs.archlinux.org/task/56772

We still need to copy the keys because nm_setting_vpn_foreach_* provides
us with copies that are freed after the iteration.

Fix this by handing out a duplicate of the array.

Fixes: 272439cb2077a889485dd195bb6b99ca91d3e3bf

https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00070.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The compat implementations return a (transfer none) strv instead of a
(transfer container) one. This has caused double frees in nm-applet:
https://bugs.archlinux.org/task/56772

We still need to copy the keys because nm_setting_vpn_foreach_* provides
us with copies that are freed after the iteration.

Fix this by handing out a duplicate of the array.

Fixes: 272439cb2077a889485dd195bb6b99ca91d3e3bf

https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00070.html
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "shared/compat: fix memory handling of nm_setting_vpn_get_*_keys"</title>
<updated>2017-12-22T14:52:41+00:00</updated>
<author>
<name>Jan Alexander Steffens (heftig)</name>
<email>jan.steffens@gmail.com</email>
</author>
<published>2017-12-21T19:36:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=64fcfc62bb63899c51aa5eb0a13ac3cee98f1629'/>
<id>64fcfc62bb63899c51aa5eb0a13ac3cee98f1629</id>
<content type='text'>
This reverts commit 8ac8c01162235c2c198bfaf25fb7d1a57a595ce5.

The fix was bad because the keys do not come from NMSettingVpn's hash
table but are copies that are freed by nm_setting_vpn_foreach_* before
it returns.

https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00069.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 8ac8c01162235c2c198bfaf25fb7d1a57a595ce5.

The fix was bad because the keys do not come from NMSettingVpn's hash
table but are copies that are freed by nm_setting_vpn_foreach_* before
it returns.

https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00069.html
</pre>
</div>
</content>
</entry>
<entry>
<title>shared/compat: fix memory handling of nm_setting_vpn_get_*_keys</title>
<updated>2017-12-21T08:51:10+00:00</updated>
<author>
<name>Jan Alexander Steffens (heftig)</name>
<email>jan.steffens@gmail.com</email>
</author>
<published>2017-12-20T12:23:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8ac8c01162235c2c198bfaf25fb7d1a57a595ce5'/>
<id>8ac8c01162235c2c198bfaf25fb7d1a57a595ce5</id>
<content type='text'>
The compat implementations return a (transfer none) strv instead of a
(transfer container) one. This has caused double frees in nm-applet:
https://bugs.archlinux.org/task/56772

Don't copy the keys and don't free the container later.

[thaller@redhat.com: patch adjusted to avoid compiler warning]

Fixes: 272439cb2077a889485dd195bb6b99ca91d3e3bf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The compat implementations return a (transfer none) strv instead of a
(transfer container) one. This has caused double frees in nm-applet:
https://bugs.archlinux.org/task/56772

Don't copy the keys and don't free the container later.

[thaller@redhat.com: patch adjusted to avoid compiler warning]

Fixes: 272439cb2077a889485dd195bb6b99ca91d3e3bf
</pre>
</div>
</content>
</entry>
<entry>
<title>shared/compat: add compat for nm_setting_vpn_get_data_keys() and nm_setting_vpn_get_secret_keys()</title>
<updated>2017-11-23T13:44:25+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-11-20T18:41:45+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=272439cb2077a889485dd195bb6b99ca91d3e3bf'/>
<id>272439cb2077a889485dd195bb6b99ca91d3e3bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>shared: add nm-utils/nm-compat.h</title>
<updated>2017-11-23T13:44:25+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-11-20T16:02:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=1cb147663b98a34e95a577cc64248a5583c696f4'/>
<id>1cb147663b98a34e95a577cc64248a5583c696f4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
