Fix a issue with timeouts etc and returning wrong status
This commit is contained in:
parent
948bd43519
commit
ec0b7826a1
2 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
8
proxy.c
8
proxy.c
|
@ -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++) {
|
||||
|
|
Reference in a new issue