Fix a issue with timeouts etc and returning wrong status

This commit is contained in:
Fish 2007-06-30 15:32:27 +00:00
parent 948bd43519
commit ec0b7826a1
2 changed files with 9 additions and 1 deletions

View file

@ -9,6 +9,8 @@ Open Proxy Scanning Bot Module for NeoStats Changelog.
- Fix the open_proxy crash when a user had signed off and thus we had a
dangling pointer (F)
- Fix make install when NeoStats is installed in a non-default location (F)
- Fix a issue with SockRead Functions when timeouts or connection refused
called, we return NS_FAILURE when it should be NS_SUCCESS (F)
3.0.a3 - Mark (M) & Fish (F)
- AKILL support and open proxy reporting (F)

View file

@ -265,7 +265,13 @@ static int proxy_read( void *data, void *recv, int size )
if (si->state == DOING_SCAN) si->state = FIN_SCAN;
check_scan_free(si);
}
return NS_FAILURE;
if (size == -2)
/* already delsock */
return NS_SUCCESS;
else
/* need socket functions to delsock */
return NS_FAILURE;
default:
proxy_list[ci->type-1].scanned++;
for (i = 0; stdmatchstrings[i] != NULL; i++) {