From: Razvan Cojocaru <[email protected]>

uninit_early() passes the --providers names to crypto_unload_provider(),
but uninit_options() has already freed them along with the options gc.
Call uninit_early() first.

Change-Id: Ia6731f4e8ebe8b5ac78ec17045b515b6cc9ea016
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2362
---

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2362
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]>

        
diff --git a/src/openvpn/openvpn.c b/src/openvpn/openvpn.c
index 2278266..d9a7c85 100644
--- a/src/openvpn/openvpn.c
+++ b/src/openvpn/openvpn.c
@@ -330,9 +330,9 @@
             } while (signal_reset(c.sig, SIGUSR1) == SIGUSR1);
 
             env_set_destroy(c.es);
+            uninit_early(&c);
             uninit_options(&c.options);
             gc_reset(&c.gc);
-            uninit_early(&c);
         } while (signal_reset(c.sig, SIGHUP) == SIGHUP);
     }
 


_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to