diff options
Diffstat (limited to 'PICA_node.c')
| -rw-r--r-- | PICA_node.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/PICA_node.c b/PICA_node.c index ab7da94..419cb29 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -2132,6 +2132,11 @@ ret: ncs[*pos].sck = -1; ncs[*pos].pos = 0; ncs[*pos].tmst = time(0); + //a slot handed over by newconn_free() still carries the type of its + //previous connection, which the request handlers would take for a second + //request on this one + ncs[*pos].type = NEWCONN_UNKNOWN; + ncs[*pos].iconn.cl = NULL; return &ncs[(*pos)++]; } |
