fix non ssl changes missed from context api change 45/3045/1
authorAndy Green <andy.green@linaro.org>
Sun, 10 Feb 2013 14:22:01 +0000 (22:22 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:32 +0000 (13:01 -0800)
http://libwebsockets.org/trac/ticket/11#comment:5

Reported-by: amn
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c

index 74d5561..241703a 100644 (file)
@@ -1756,8 +1756,8 @@ libwebsocket_create_context(struct lws_context_creation_info *info)
                        lwsl_notice(" Using non-SSL mode\n");
 
 #else
-               if (ssl_cert_filepath != NULL &&
-                                            ssl_private_key_filepath != NULL) {
+               if (info->ssl_cert_filepath != NULL &&
+                                      info->ssl_private_key_filepath != NULL) {
                        lwsl_notice(" Not compiled for OpenSSl support!\n");
                        goto bail;
                }