summaryrefslogtreecommitdiffstats
path: root/plugin/eurephia-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/eurephia-auth.c')
-rw-r--r--plugin/eurephia-auth.c5
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;
}