mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 05:26:07 +03:00
Fix win32 build error
This commit is contained in:
parent
0757c70ef8
commit
2212ceadd5
@ -1216,7 +1216,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
memset(password, 0, 33);
|
memset(password, 0, 33);
|
||||||
nameserv_addr = NULL;
|
nameserv_addr = NULL;
|
||||||
|
#ifndef WINDOWS32
|
||||||
pw = NULL;
|
pw = NULL;
|
||||||
|
#endif
|
||||||
username = NULL;
|
username = NULL;
|
||||||
foreground = 0;
|
foreground = 0;
|
||||||
newroot = NULL;
|
newroot = NULL;
|
||||||
|
@ -330,7 +330,6 @@ handle_null_request(int tun_fd, int dns_fd, struct query *q, int domain_len)
|
|||||||
char unpacked[64*1024];
|
char unpacked[64*1024];
|
||||||
char *tmp[2];
|
char *tmp[2];
|
||||||
int userid;
|
int userid;
|
||||||
int code;
|
|
||||||
int read;
|
int read;
|
||||||
|
|
||||||
userid = -1;
|
userid = -1;
|
||||||
@ -554,6 +553,8 @@ handle_null_request(int tun_fd, int dns_fd, struct query *q, int domain_len)
|
|||||||
} else if((in[0] >= '0' && in[0] <= '9')
|
} else if((in[0] >= '0' && in[0] <= '9')
|
||||||
|| (in[0] >= 'a' && in[0] <= 'f')
|
|| (in[0] >= 'a' && in[0] <= 'f')
|
||||||
|| (in[0] >= 'A' && in[0] <= 'F')) {
|
|| (in[0] >= 'A' && in[0] <= 'F')) {
|
||||||
|
int code = -1;
|
||||||
|
|
||||||
if ((in[0] >= '0' && in[0] <= '9'))
|
if ((in[0] >= '0' && in[0] <= '9'))
|
||||||
code = in[0] - '0';
|
code = in[0] - '0';
|
||||||
if ((in[0] >= 'a' && in[0] <= 'f'))
|
if ((in[0] >= 'a' && in[0] <= 'f'))
|
||||||
@ -1142,7 +1143,9 @@ main(int argc, char **argv)
|
|||||||
char *netsize;
|
char *netsize;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
|
#ifndef WINDOWS32
|
||||||
pw = NULL;
|
pw = NULL;
|
||||||
|
#endif
|
||||||
username = NULL;
|
username = NULL;
|
||||||
newroot = NULL;
|
newroot = NULL;
|
||||||
context = NULL;
|
context = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user