summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index beb658144..e8c4f68ab 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -1076,7 +1076,7 @@ int RFIFOSKIP(int fd,int len)
s = session[fd];
- if ( s->rdata_size - s->rdata_pos - len < 0 ) {
+ if ( s->rdata_size < s->rdata_pos + len ) {
//fprintf(stderr,"too many skip\n");
//exit(1);
//better than a COMPLETE program abort // TEST! :)