http_async_client: safety check for cell value
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 09:32:56 +0000 (11:32 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 09:32:56 +0000 (11:32 +0200)
src/modules/http_async_client/http_multi.c

index 5d07a9d..7e086e4 100644 (file)
@@ -314,7 +314,9 @@ void reply_error(struct http_m_cell *cell)
                reply->error[0] = '\0';
        }
 
-       cell->cb(reply, cell->param);
+       if (cell) {
+               cell->cb(reply, cell->param);
+       }
 
        pkg_free(reply);