summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-27 18:07:23 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-27 18:07:23 +0100
commit8effcb747d0cc7d8e9474f85882ef7224d91a707 (patch)
tree8f6edf097a66db7cf4c819b7e13dca252e450829
parent1a345ca48fc3e2cd172a5020a8d204553811b379 (diff)
libmsc: Set the "trans->conn" to NULL to catch invalid usage
Make finding use-after-free more easy and set it to NULL.
-rw-r--r--openbsc/src/libmsc/transaction.c2
1 files changed, 1 insertions, 1 deletions
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);
}