aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-16 10:09:42 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-16 10:09:42 +0100
commit3d0cc2f97d7b559c2fd787915314e81cba92c528 (patch)
treee8b09c1fa0a602f50b8c0e97e0900c9bacbc417e /src/bts.cpp
parenta0047996990214c72ab20d7a0614d8790f4b9634 (diff)
tbf: Make finding use-after-free more easy and set to NULL or return
Make finding use-after-free more easy by setting things to NULL or simply return after tbf_free(this) has been called.
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 7c60452c..ff16e296 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -851,6 +851,7 @@ void gprs_rlcmac_pdch::rcv_resource_request(Packet_Resource_Request_t *request,
"Killing pending DL TBF\n", tlli,
tbf_name(dl_tbf));
tbf_free(dl_tbf);
+ dl_tbf = NULL;
}
LOGP(DRLCMAC, LOGL_DEBUG, "MS requests UL TBF "
"in packet resource request of single "