Attention is currently required from: Arne Schwabe.

Hello Arne Schwabe,

I'd like you to do a code review.
Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2362?usp=email

to review the following change.


Change subject: openvpn: unload providers before freeing the options
......................................................................

openvpn: unload providers before freeing the options

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]>
---
M src/openvpn/openvpn.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/62/2362/1

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);
     }
 

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2362?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia6731f4e8ebe8b5ac78ec17045b515b6cc9ea016
Gerrit-Change-Number: 2362
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to