From 8effcb747d0cc7d8e9474f85882ef7224d91a707 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 27 Dec 2013 18:07:23 +0100 Subject: [PATCH] libmsc: Set the "trans->conn" to NULL to catch invalid usage Make finding use-after-free more easy and set it to NULL. --- openbsc/src/libmsc/transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/libmsc/transaction.c b/openbsc/src/libmsc/transaction.c index c1441969d..e425e67ee 100644 --- a/openbsc/src/libmsc/transaction.c +++ b/openbsc/src/libmsc/transaction.c @@ -113,7 +113,7 @@ void trans_free(struct gsm_trans *trans) if (trans->conn) msc_release_connection(trans->conn); - + trans->conn = NULL; talloc_free(trans); }