]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Simple fix where options->ca_file was used without
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 21 Jan 2008 03:39:01 +0000 (03:39 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 21 Jan 2008 03:39:01 +0000 (03:39 +0000)
first being checked against NULL.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2635 e7ae566f-a301-0410-adde-c780ea21d3b5

ssl.c

diff --git a/ssl.c b/ssl.c
index 712489aefad68a9d36d6445ac36a12d1c084e190..3b12f97982a01ccacc284a9b5d34d92b41dd3853 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -1230,7 +1230,7 @@ init_ssl (const struct options *options)
       int status;
 
 #if ENABLE_INLINE_FILES
-      if (!strcmp (options->ca_file, INLINE_FILE_TAG) && options->ca_file_inline)
+      if (options->ca_file && !strcmp (options->ca_file, INLINE_FILE_TAG) && options->ca_file_inline)
        {
          status = use_inline_load_verify_locations (ctx, options->ca_file_inline);
        }