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 ab9a1814887e4204d21c98572dd5b2eb44f2e83b..103377bba0fef110b7e1da6915820e5f6907cfd8 100644 (file)
@@ -4561,6 +4561,10 @@ int StrBufTCP_read_buffered_line_fast(StrBuf *Line,
 
                        continue;
                }
+               else
+               {
+                       nSuccessLess++;
+               }
        }
        *Pos = NULL;
        if (pLF != NULL) {