diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-07-03 12:38:59 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-07-03 15:30:26 +0200 |
commit | 9380f5d2181c63922627cbff6abe5e3cd05523e4 (patch) | |
tree | 928d2080266962eb2fc307538b9835982f437236 /src/tbf.h | |
parent | ac89a555fa73b24a77bb861811774a5af885bc84 (diff) |
tbf: Add GprsMs* argument to update() and use it in reuse_tbf
Since set_ms() is caled on the new DL TBF, the old DL TBF loses the
reference to the MS object. This will lead to a segfault, when
update() is called in reuse_tbf().
This commit adds an optional GprsMs* parameter to update() and uses it
for the slot allocation.
This fixes a TbfTest crash that would otherwise occur after applying
the next commit.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.h')
-rw-r--r-- | src/tbf.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ struct gprs_rlcmac_tbf { int rlcmac_diag(); - int update(); + int update(GprsMs *ms = NULL); void handle_timeout(); void stop_timer(); void stop_t3191(); |