summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-09-22 01:26:53 +0200
committerHaru <haru@dotalux.com>2016-09-22 01:26:53 +0200
commita2329f4f10a3ab2e70141766a16981e69e2a71ba (patch)
tree7c3e8132a258a97b7f53d1d6d5f328b8f34870cb /src
parent4c2beb2e5e6ca6f3c12e0f068f8416d76ae85d67 (diff)
downloadhercules-a2329f4f10a3ab2e70141766a16981e69e2a71ba.tar.gz
hercules-a2329f4f10a3ab2e70141766a16981e69e2a71ba.tar.bz2
hercules-a2329f4f10a3ab2e70141766a16981e69e2a71ba.tar.xz
hercules-a2329f4f10a3ab2e70141766a16981e69e2a71ba.zip
Fixed a compile error when SEND_SHORTLIST is disabled
- Since f8edb93a (likely caused by a find and replace macro gone horribly wrong) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-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