Code

Added NLM test (Phil Randal)
[nagiosplug.git] / plugins / check_tcp.c
index 13c34f97a81472f93475adecddca09d51641fe0d..f4fe5f40cf84da5e7e814b2b77a2ebc7677cf33b 100644 (file)
@@ -297,7 +297,7 @@ main (int argc, char **argv)
                        asprintf (&status, "%s%s", status, buffer);
                        if (buffer[i-2] == '\r' && buffer[i-1] == '\n')
                                break;
-                       if (maxbytes>0 && strlen(status)>maxbytes)
+                       if (maxbytes>0 && strlen(status)>=maxbytes)
                                break;
                }