Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
94:c85c88500ea6 | 95:b855bf63766c |
---|---|
169 | 169 |
170 void x11cleanup(struct ChanSess *chansess) { | 170 void x11cleanup(struct ChanSess *chansess) { |
171 | 171 |
172 m_free(chansess->x11authprot); | 172 m_free(chansess->x11authprot); |
173 m_free(chansess->x11authcookie); | 173 m_free(chansess->x11authcookie); |
174 remove_listener(chansess->x11listener); | 174 |
175 chansess->x11listener = NULL; | 175 TRACE(("chansess %s", chansess)); |
176 if (chansess->x11listener != NULL) { | |
177 remove_listener(chansess->x11listener); | |
178 chansess->x11listener = NULL; | |
179 } | |
176 } | 180 } |
177 | 181 |
178 static const struct ChanType chan_x11 = { | 182 static const struct ChanType chan_x11 = { |
179 0, /* sepfds */ | 183 0, /* sepfds */ |
180 "x11", | 184 "x11", |