read will return 0 if select wouldn't have been successfull.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 17 Feb 2013 19:41:29 +0000 (20:41 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 17 Feb 2013 19:41:29 +0000 (20:41 +0100)
libcitadel/lib/stringbuf.c

index ab9a181..103377b 100644 (file)
@@ -4561,6 +4561,10 @@ int StrBufTCP_read_buffered_line_fast(StrBuf *Line,
 
                        continue;
                }
+               else
+               {
+                       nSuccessLess++;
+               }
        }
        *Pos = NULL;
        if (pLF != NULL) {