Mercurial > dropbear
diff svr-x11fwd.c @ 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 | b0316ce64e4b |
children | 2e9d1f29c50f |
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 = {