GError gets overwritten in case of invalid property value
When setting an invalid property value (e.g. require-mppe: foobar
), GLib prints the following error:
GError set over the top of a previous GError or uninitialized memory.\nThis indicates a bug in someone's code. You must ensure an error is NULL before it's set.
.
The problem is that the GError gets initialized here: https://gitlab.gnome.org/GNOME/NetworkManager-pptp/-/blob/1.2.13-dev/src/nm-pptp-service.c#L214
and overwritten: https://gitlab.gnome.org/GNOME/NetworkManager-pptp/-/blob/1.2.13-dev/src/nm-pptp-service.c#L231