aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-05-08 18:42:39 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-05-08 18:46:55 +0200
commitf5a079f739c57d8be7c59149fd45475c402a45fc (patch)
treea07c733ccf4c6eac1366598c3d0f2f4e34db3609 /src/gsm
parentd0ce550251f8d1809f768428c11da0f80f940f10 (diff)
lapd: Set the tx_hist to NULL after freeing it
Make detecting use after free of the tx_hist easy and set the variable to NULL after talloc_free has been freed.
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/lapd_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c
index f351308d..9dbdfcf9 100644
--- a/src/gsm/lapd_core.c
+++ b/src/gsm/lapd_core.c
@@ -327,6 +327,7 @@ void lapd_dl_exit(struct lapd_datalink *dl)
lapd_dl_reset(dl);
/* free history buffer list */
talloc_free(dl->tx_hist);
+ dl->tx_hist = NULL;
}
/*! \brief Set the \ref lapdm_mode of a LAPDm entity */