diff options
| author | Anton <anton@picapica> | 2017-07-20 19:30:18 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2017-07-20 19:30:18 +0400 |
| commit | 1ba81a25b54881d0519963df31ef85f45ea30a87 (patch) | |
| tree | 1f26b1ba06643ac7f8ae0d710afb4e4b7de0bf2f | |
| parent | f15e2db611dbb96e3294a5a778ac77022ece7e81 (diff) | |
| download | pica-pica-1ba81a25b54881d0519963df31ef85f45ea30a87.tar.gz pica-pica-1ba81a25b54881d0519963df31ef85f45ea30a87.zip | |
fixed removing PICA_directc2c from listener's accepted connections list
| -rw-r--r-- | PICA_client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/PICA_client.c b/PICA_client.c index d488a16..ad4c3eb 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -2430,7 +2430,9 @@ static int process_listener(struct PICA_listener *lst, fd_set *rfds, fd_set *wfd fprintf(stderr, "process_listener_conn() returned %i\n", ret); - pprevconn = &conn->next; + if (!kill_ptr) + pprevconn = &conn->next; + conn = conn->next; if (kill_ptr) @@ -2438,6 +2440,7 @@ static int process_listener(struct PICA_listener *lst, fd_set *rfds, fd_set *wfd *pprevconn = kill_ptr->next; PICA_close_directc2c(kill_ptr); } + } return PICA_OK; |
