Mercurial > dropbear
changeset 95:b855bf63766c
Don't try to remove non-eixtant listeners
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 18 Aug 2004 16:31:05 +0000 |
parents | c85c88500ea6 |
children | b8e36c1a5520 |
files | svr-x11fwd.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/svr-x11fwd.c Wed Aug 18 15:48:25 2004 +0000 +++ b/svr-x11fwd.c Wed Aug 18 16:31:05 2004 +0000 @@ -171,8 +171,12 @@ 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 = {