Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
1:9190c0f4d23a
Parent:
0:fa2de1b79154
Child:
6:c55b013dfc2a
--- a/tlsio_wolfssl.c	Fri Apr 08 12:01:36 2016 -0700
+++ b/tlsio_wolfssl.c	Sun Apr 24 16:41:14 2016 -0700
@@ -545,6 +545,10 @@
                 result = 0;
             }
         }
+        else if (tls_io_instance->socket_io == NULL)
+        {
+            result = __LINE__;
+        }
         else
         {
             result = xio_setoption(tls_io_instance->socket_io, optionName, value);