summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/socket.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index cee2875d5..ea7bfab40 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -892,13 +892,12 @@ int do_sockets(int next)
#ifdef SEND_SHORTLIST
send_shortlist_do_sends();
#else // SEND_SHORTLIST
- for (i = 1; i < sockt->fd_max; i++)
- {
- if(!sockt->session[fd]
+ for (i = 1; i < sockt->fd_max; i++) {
+ if (sockt->session[i] == NULL)
continue;
- if(sockt->session[fd]>wdata_size)
- sockt->session[fd]>func_send(i);
+ if (sockt->session[i]->wdata_size > 0)
+ sockt->session[i]->func_send(i);
}
#endif // SEND_SHORTLIST