Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Emulate the previous `-l' option to ashd-wsgi3.
[ashd.git]
/
src
/
ssl-gnutls.c
diff --git
a/src/ssl-gnutls.c
b/src/ssl-gnutls.c
index
baa1334
..
0d4dd22
100644
(file)
--- a/
src/ssl-gnutls.c
+++ b/
src/ssl-gnutls.c
@@
-359,7
+359,7
@@
out:
static void listenloop(struct muth *muth, va_list args)
{
vavar(struct sslport *, pd);
static void listenloop(struct muth *muth, va_list args)
{
vavar(struct sslport *, pd);
- int ns;
+ int
i,
ns;
struct sockaddr_storage name;
socklen_t namelen;
struct sockaddr_storage name;
socklen_t namelen;
@@
-378,6
+378,10
@@
static void listenloop(struct muth *muth, va_list args)
out:
close(pd->fd);
free(pd);
out:
close(pd->fd);
free(pd);
+ for(i = 0; i < listeners.d; i++) {
+ if(listeners.b[i] == muth)
+ bufdel(listeners, i);
+ }
}
static gnutls_dh_params_t dhparams(void)
}
static gnutls_dh_params_t dhparams(void)