read will return 0 if select wouldn't have been successfull.
[citadel.git] / 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) {