diff --git a/src/ssb.c b/src/ssb.c index a00cafb5..e4d59e69 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -457,6 +457,10 @@ static void _tf_ssb_connection_remove_request(tf_ssb_connection_t* connection, i void tf_ssb_connection_rpc_send(tf_ssb_connection_t* connection, uint8_t flags, int32_t request_number, const uint8_t* message, size_t size, tf_ssb_rpc_callback_t* callback, void* user_data) { + if (!connection) + { + return; + } if (request_number > 0) { tf_ssb_connection_add_request(connection, request_number, callback, user_data);