comparison 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
comparison
equal deleted inserted replaced
1068:9a6395ddb1b6 1069:2fa71c3b2827
159 for (j = 0; j < listener->nsocks; j++) { 159 for (j = 0; j < listener->nsocks; j++) {
160 close(listener->socks[j]); 160 close(listener->socks[j]);
161 } 161 }
162 ses.listeners[listener->index] = NULL; 162 ses.listeners[listener->index] = NULL;
163 m_free(listener); 163 m_free(listener);
164 }
164 165
166 void remove_all_listeners(void) {
167 unsigned int i;
168 for (i = 0; i < ses.listensize; i++) {
169 if (ses.listeners[i]) {
170 remove_listener(ses.listeners[i]);
171 }
172 }
173 m_free(ses.listeners);
165 } 174 }