diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-05 04:00:00 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-05 04:00:00 +0000 |
commit | bed73623cdfc21c3fb9742f47935598705860254 (patch) | |
tree | a5ad20c653f4c1887e4c478e5b4f325e92a6340a /init.c | |
parent | Patch to support --topology subnet on Mac OS X (Mathias Sundman). (diff) | |
download | openvpn-bed73623cdfc21c3fb9742f47935598705860254.tar.xz |
Fixed segfault that occurred if remote_cert_eku is undefined and no
server certificate verification method was enabled.
Don't declare pkcs11 variables in struct options unless pkcs11
support is enabled.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@833 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1671,7 +1671,7 @@ do_option_warnings (struct context *c) && !o->tls_verify && !o->tls_remote && !(o->ns_cert_type & NS_SSL_SERVER) - && !o->remote_cert_eku[0]) + && (o->remote_cert_eku == NULL || !o->remote_cert_eku[0])) msg (M_WARN, "WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info."); #endif #endif |