aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-18 18:28:13 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-18 18:28:13 +0200
commit51537eef506de32cb3441e05040d84a8cd467fd8 (patch)
tree93d3f4445b3b9312c0c5d86bad38adc81eda15a7 /openbsc/src/gprs
parentb4a3129993b009d5e7a3b67337c65d3ec913ee37 (diff)
[GPRS] SGSN: Make sure libgtp timer doesn't segfault
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index 862dd40ab..df392b92f 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -445,6 +445,7 @@ int sgsn_gtp_init(struct sgsn_instance *sgi)
/* Start GTP re-transmission timer */
sgi->gtp_timer.cb = sgsn_gtp_tmr_cb;
+ sgi->gtp_timer.data = sgi;
sgsn_gtp_tmr_start(sgi);
/* Register callbackcs with libgtp */