libmsc: Set trans->subscr = NULL after we release it

This is a cosmetic change and should happen to find use after free
of the subscriber.
This commit is contained in:
Holger Hans Peter Freyther 2012-12-22 18:16:47 +01:00
parent 25b70cea9d
commit 405824c057
1 changed files with 3 additions and 1 deletions

View File

@ -103,8 +103,10 @@ void trans_free(struct gsm_trans *trans)
trans->paging_request = NULL;
}
if (trans->subscr)
if (trans->subscr) {
subscr_put(trans->subscr);
trans->subscr = NULL;
}
llist_del(&trans->entry);