commit | 7a1d6bb06d83093bcb9e7fe8cb735ab03bfb0298 | [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 | 89e3f8a7b9e0cb43b2580395fc0ddb05138a7b30 [diff] |
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); }