mirror of https://github.com/OpenVPN/openvpn-gui
![]() Currently we use an array of connection pointers which needs to be reallocated when space runs out. But, that happens from the main thread while the status thread may be referring to those pointers. Its very hard to fence against possible invalid memory access. Instead, use a list so that connection pointer never changes once created. The connection list is no longer recreated from scratch even when no connections are active. This means configs added while GUI is running will always appear at the bottom of the root group listing until the GUI is restarted. TODO: This behaviour could be improved by scanning through the groups to graft new configs at the right branch in the config-group tree. v2: removed unused references to SetMenuStatusById() Signed-off-by: Selva Nair <selva.nair@gmail.com> |
||
---|---|---|
.. | ||
Makefile.am | ||
openvpn-plap-install.reg | ||
openvpn-plap-res.rc | ||
openvpn-plap-uninstall.reg | ||
openvpn-plap.manifest | ||
openvpn_plap.def | ||
plap_common.c | ||
plap_common.h | ||
plap_connection.c | ||
plap_connection.h | ||
plap_dll.c | ||
plap_dll.h | ||
plap_provider.c | ||
resource.h | ||
stub.c | ||
test-plap-res.rc | ||
test-plap.manifest | ||
test_plap.cpp | ||
ui_glue.c | ||
ui_glue.h |