common: handle gracefully disconnect requests for NULL transports.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 18 Jun 2012 08:31:55 +0000 (11:31 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 18 Jun 2012 08:31:55 +0000 (11:31 +0300)
src/common/transport.c

index f598c4b..be1216c 100644 (file)
@@ -341,7 +341,7 @@ int mrp_transport_disconnect(mrp_transport_t *t)
 {
     int result;
     
-    if (t->connected) {
+    if (t != NULL && t->connected) {
        MRP_TRANSPORT_BUSY(t, {
                if (t->descr->req.disconnect(t)) {
                    t->connected = FALSE;