From dfecebb0dab3ade83956e7474408b7897f242b6c Mon Sep 17 00:00:00 2001
From: Dmitry Kozlov <xeb@mail.ru>
Date: Sat, 5 Mar 2011 09:13:47 +0300
Subject: bugfix

---
 accel-pppd/triton/triton.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'accel-pppd/triton')

diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c
index 0740591..63561d8 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)) {
-- 
cgit v1.2.3