Test of plugin success did not match the documentation

MAINT_6_0
Stephane Bortzmeyer 17 years ago
parent 8e83acace2
commit 8dfa6ed5a2

@ -699,7 +699,7 @@ main(argc, argv)
if (smtp) { if (smtp) {
sendline = "QUIT\r\n"; /* Surprises some SMTP servers which log a sendline = "QUIT\r\n"; /* Surprises some SMTP servers which log a
* frightening NOQUEUE. Anyone knows better? * frightening NOQUEUE. Anyone knows better?
* * See bug #1512776 */ * * * See bug #1512776 */
} else } else
#endif #endif
#ifdef ICP #ifdef ICP
@ -1382,7 +1382,7 @@ main(argc, argv)
(void) gettimeofday(&newtv, (struct timezone *) NULL); (void) gettimeofday(&newtv, (struct timezone *) NULL);
temp = newtv; temp = newtv;
tvsub(&temp, &oldtv); tvsub(&temp, &oldtv);
if (!timeout_flag && (!plugin || plugin_result == 0)) { /* If it if (!timeout_flag && (!plugin || plugin_result >= 0)) { /* If it
* worked... * worked...
*/ */
tvadd(&total, &temp); tvadd(&total, &temp);

Loading…
Cancel
Save