return -1;
}
- props = segment_manager_properties_get (app->sm_properties);
+ props = application_segment_manager_properties (app);
mp->options[APP_OPTIONS_RX_FIFO_SIZE] = props->rx_fifo_size;
mp->options[APP_OPTIONS_TX_FIFO_SIZE] = props->tx_fifo_size;
clib_error_t *error = 0;
int rv = 0;
+ reg = vl_api_client_index_to_registration (mp->client_index);
+ if (!reg)
+ return;
+
if (session_manager_is_enabled () == 0)
{
rv = VNET_API_ERROR_FEATURE_DISABLED;
if (rv)
return;
- reg = vl_api_client_index_to_registration (mp->client_index);
-
/* Send fifo segment fd if needed */
if (ssvm_type (a->segment) == SSVM_SEGMENT_MEMFD)
session_send_memfd_fd (reg, a->segment);