summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-03-05 09:13:47 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-03-05 09:13:47 +0300
commitdfecebb0dab3ade83956e7474408b7897f242b6c (patch)
tree1026d42ab47428f4c6aa653413c1d9ada4420eb3
parent2c2662e034332ed52c4a31608afab794c00a2ec9 (diff)
downloadaccel-ppp-dfecebb0dab3ade83956e7474408b7897f242b6c.tar.gz
accel-ppp-dfecebb0dab3ade83956e7474408b7897f242b6c.zip
bugfix
-rw-r--r--accel-pppd/triton/triton.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c
index 07405911..63561d8f 100644
--- a/accel-pppd/triton/triton.c
+++ b/accel-pppd/triton/triton.c
@@ -188,7 +188,8 @@ static void ctx_thread(struct _triton_context_t *ctx)
spin_unlock(&ctx->lock);
__sync_sub_and_fetch(&triton_stat.timer_pending, 1);
read(t->fd, &tt, sizeof(tt));
- t->ud->expire(t->ud);
+ if (t->ud)
+ t->ud->expire(t->ud);
continue;
}
if (!list_empty(&ctx->pending_handlers)) {