summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/fdtrash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/fdtrash.c b/accel-pppd/fdtrash.c
index c43de8d5..218a0756 100644
--- a/accel-pppd/fdtrash.c
+++ b/accel-pppd/fdtrash.c
@@ -19,7 +19,8 @@ static void __close(void *arg)
void __export fdtrash_add(long fd)
{
- triton_context_call(&ctx, (triton_event_func)__close, (void *)fd);
+ if (ctx.tpd)
+ triton_context_call(&ctx, (triton_event_func)__close, (void *)fd);
}
static void init()