Browse Source

fix deactivation of SSL

release0.1.5 v0.1.2
Georg Hopp 12 years ago
parent
commit
577b8ffa13
  1. 8
      src/server/server.c

8
src/server/server.c

@ -98,8 +98,7 @@ serverCtor(void * _this, va_list * params)
(this->fds)[0].events = POLLIN;
// (this->fds)[1].fd = this->sockSSL->handle;
// (this->fds)[1].events = POLLIN;
// this->nfds = 2;
this->nfds = 1;
this->nfds = 2;
return 0;
}
@ -112,8 +111,9 @@ serverDtor(void * _this)
int i;
for (i=0; i<this->nfds; i++) {
if (this->sock->handle != (this->fds)[i].fd &&
this->sockSSL->handle != (this->fds)[i].fd) {
//if (this->sock->handle != (this->fds)[i].fd &&
// this->sockSSL->handle != (this->fds)[i].fd) {
if (this->sock->handle != (this->fds)[i].fd) {
serverCloseConn(this, i);
}
}

Loading…
Cancel
Save