diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-18 16:31:05 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-18 16:31:05 +0000 |
commit | abf66aa7a1cb4d09a967b715ab7f59fc62801aaf (patch) | |
tree | 1244493fba5426aa499a0bd0a82b30469f6032da /svr-x11fwd.c | |
parent | 1e94425015464ee52dc50030dc7d87d1c8375f05 (diff) |
Don't try to remove non-eixtant listeners
--HG--
extra : convert_revision : 87058f74626cd6795ecd495cc22779618c70eaa8
Diffstat (limited to 'svr-x11fwd.c')
-rw-r--r-- | svr-x11fwd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svr-x11fwd.c b/svr-x11fwd.c index a8d1cd5..75e94b8 100644 --- a/svr-x11fwd.c +++ b/svr-x11fwd.c @@ -171,8 +171,12 @@ void x11cleanup(struct ChanSess *chansess) { m_free(chansess->x11authprot); m_free(chansess->x11authcookie); - remove_listener(chansess->x11listener); - chansess->x11listener = NULL; + + TRACE(("chansess %s", chansess)); + if (chansess->x11listener != NULL) { + remove_listener(chansess->x11listener); + chansess->x11listener = NULL; + } } static const struct ChanType chan_x11 = { |