mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 02:27:31 -07:00
Changed index() to strchr()
This commit is contained in:
parent
d6a42ace44
commit
c81f0b97e7
7 changed files with 47 additions and 47 deletions
|
@ -295,13 +295,13 @@ int32_t internal__hydra_connect(char *host, int32_t port, int32_t type, int32_t
|
|||
|
||||
send(s, buf, strlen(buf), 0);
|
||||
if (debug) {
|
||||
char *ptr = index(buf, '\r');
|
||||
char *ptr = strchr(buf, '\r');
|
||||
if (ptr != NULL)
|
||||
*ptr = 0;
|
||||
printf("DEBUG_CONNECT_PROXY_SENT: %s\n", buf);
|
||||
}
|
||||
recv(s, buf, 4096, 0);
|
||||
if (strncmp("HTTP/", buf, 5) == 0 && (tmpptr = index(buf, ' ')) != NULL && *++tmpptr == '2') {
|
||||
if (strncmp("HTTP/", buf, 5) == 0 && (tmpptr = strchr(buf, ' ')) != NULL && *++tmpptr == '2') {
|
||||
if (debug)
|
||||
printf("DEBUG_CONNECT_PROXY_OK\n");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue