214
214
slplink->swboard = NULL;
217
/* The slplink has no slpcalls in it, release it from the DC. */
218
if (slplink->slp_calls == NULL && slplink->dc != NULL) {
219
slplink->dc->slplink = NULL;
220
msn_dc_destroy(slplink->dc);
217
if (slplink->dc != NULL) {
218
if ((slplink->dc->state != DC_STATE_ESTABLISHED && slplink->dc->slpcall == slpcall)
219
|| (slplink->slp_calls == NULL)) {
220
/* The DC is not established and its corresponding slpcall is dead,
221
* or the slplink has no slpcalls in it and no longer needs the DC.
223
slplink->dc->slplink = NULL;
224
msn_dc_destroy(slplink->dc);