mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Compiler warning fix
This commit is contained in:
parent
2723eda1e4
commit
6ebd5e1761
11
lib/socks.c
11
lib/socks.c
@ -23,6 +23,15 @@
|
|||||||
|
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef NEED_MALLOC_H
|
||||||
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_STDLIB_H
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "urldata.h"
|
#include "urldata.h"
|
||||||
#include "sendf.h"
|
#include "sendf.h"
|
||||||
#include "strequal.h"
|
#include "strequal.h"
|
||||||
@ -541,7 +550,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||||||
code = Curl_write(conn, sock, (char *)socksreq, packetsize, &written);
|
code = Curl_write(conn, sock, (char *)socksreq, packetsize, &written);
|
||||||
if ((code != CURLE_OK) || (written != packetsize)) {
|
if ((code != CURLE_OK) || (written != packetsize)) {
|
||||||
failf(data, "Failed to send SOCKS5 connect request.");
|
failf(data, "Failed to send SOCKS5 connect request.");
|
||||||
return 1;
|
return CURLE_COULDNT_CONNECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = blockread_all(conn, sock, (char *)socksreq, packetsize,
|
result = blockread_all(conn, sock, (char *)socksreq, packetsize,
|
||||||
|
Loading…
Reference in New Issue
Block a user