commit | 8effcb747d0cc7d8e9474f85882ef7224d91a707 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Fri Dec 27 18:07:23 2013 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Fri Dec 27 18:07:23 2013 +0100 |
tree | 8f6edf097a66db7cf4c819b7e13dca252e450829 | |
parent | 1a345ca48fc3e2cd172a5020a8d204553811b379 [diff] [blame] |
libmsc: Set the "trans->conn" to NULL to catch invalid usage Make finding use-after-free more easy and set it to NULL.
diff --git a/openbsc/src/libmsc/transaction.c b/openbsc/src/libmsc/transaction.c index c144196..e425e67 100644 --- a/openbsc/src/libmsc/transaction.c +++ b/openbsc/src/libmsc/transaction.c
@@ -113,7 +113,7 @@ if (trans->conn) msc_release_connection(trans->conn); - + trans->conn = NULL; talloc_free(trans); }