if (sigtran_sccp_sockaddr_from_conf(inst, inst, &inst->conn_conf.sccp_calling_sockaddr,
&inst->conn_conf.sccp_calling, conf) < 0) return -1;
+ /*
+ * Don't bother starting the sigtran thread if we're
+ * just checking the config.
+ */
+ if (check_config) return 0;
+
/*
* If this is the first instance of rlm_sigtran
* We spawn a new thread to run all the libosmo-* I/O
{
rlm_sigtran_t *inst = instance;
+ /*
+ * If we're just checking the config we didn't start the
+ * thread.
+ */
+ if (check_config) return 0;
+
sigtran_client_link_down(&inst->conn);
if ((--sigtran_instances) == 0) sigtran_event_exit();