diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-10-04 18:52:17 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-10-04 18:52:17 +0400 |
commit | 43a444fc65d917bf680831c0b942d682d933dc84 (patch) | |
tree | cc7c85b61e86f72795e4c3881199e3a96ddd0ca6 /accel-pppd/triton | |
parent | cc301ec08bf329968cea8fab8a5d7c4b05a1870b (diff) | |
download | accel-ppp-43a444fc65d917bf680831c0b942d682d933dc84.tar.gz accel-ppp-43a444fc65d917bf680831c0b942d682d933dc84.zip |
radius: various bug fixes
Diffstat (limited to 'accel-pppd/triton')
-rw-r--r-- | accel-pppd/triton/triton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c index f550db2..2807da8 100644 --- a/accel-pppd/triton/triton.c +++ b/accel-pppd/triton/triton.c @@ -517,7 +517,7 @@ int __export triton_context_call(struct triton_context_t *ud, void (*func)(void void __export triton_cancel_call(struct triton_context_t *ud, void (*func)(void *)) { - struct _triton_context_t *ctx = (struct _triton_context_t *)ud->tpd; + struct _triton_context_t *ctx = ud ? (struct _triton_context_t *)ud->tpd : (struct _triton_context_t *)default_ctx.tpd; struct list_head *pos, *n; struct _triton_ctx_call_t *call; |