diff options
-rw-r--r-- | plugin/eurephia-auth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/eurephia-auth.c b/plugin/eurephia-auth.c index 9245a40..e0669fa 100644 --- a/plugin/eurephia-auth.c +++ b/plugin/eurephia-auth.c @@ -208,7 +208,10 @@ OPENVPN_EXPORT openvpn_plugin_handle_t openvpn_plugin_open_v1(unsigned int *type // Setup a eurephia context context = eurephiaInit(argv, envp); - context->tuntype = tuntype_UNKN; // Make sure tunnel type is unknown + if( context ) { + // Make sure tunnel type is unknown + context->tuntype = tuntype_UNKN; + } return (openvpn_plugin_handle_t) context; } |