Mercurial > dropbear
diff listener.c @ 1069:2fa71c3b2827 pam
merge pam branch up to date
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 16 Mar 2015 21:34:05 +0800 |
parents | 2b4fd440399d |
children | 06d52bcb8094 |
line wrap: on
line diff
--- a/listener.c Fri Jan 23 22:32:49 2015 +0800 +++ b/listener.c Mon Mar 16 21:34:05 2015 +0800 @@ -161,5 +161,14 @@ } ses.listeners[listener->index] = NULL; m_free(listener); +} +void remove_all_listeners(void) { + unsigned int i; + for (i = 0; i < ses.listensize; i++) { + if (ses.listeners[i]) { + remove_listener(ses.listeners[i]); + } + } + m_free(ses.listeners); }