Browse Source

* plugin.c : check config on startup

master
Alex 'AdUser' Z 9 years ago
parent
commit
0b332803e5
  1. 5
      src/plugin.c

5
src/plugin.c

@ -56,6 +56,11 @@ openvpn_plugin_open_v1 (unsigned int *type_mask,
return NULL; return NULL;
} }
if (check_config(config) != 0) {
fprintf(stderr, "config check failed: %s", config->error);
return NULL;
}
*type_mask = OPENVPN_PLUGIN_MASK (OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY); *type_mask = OPENVPN_PLUGIN_MASK (OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY);
return (openvpn_plugin_handle_t) config; return (openvpn_plugin_handle_t) config;
} }

Loading…
Cancel
Save