Fix win32 build error

This commit is contained in:
Erik Ekman 2009-08-15 19:35:07 +00:00 committed by Erik Ekman
parent cb926cf0c9
commit ef8e3b7ea4
2 changed files with 6 additions and 1 deletions

View File

@ -1216,7 +1216,9 @@ main(int argc, char **argv)
memset(password, 0, 33);
nameserv_addr = NULL;
#ifndef WINDOWS32
pw = NULL;
#endif
username = NULL;
foreground = 0;
newroot = NULL;

View File

@ -330,7 +330,6 @@ handle_null_request(int tun_fd, int dns_fd, struct query *q, int domain_len)
char unpacked[64*1024];
char *tmp[2];
int userid;
int code;
int read;
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')
|| (in[0] >= 'a' && in[0] <= 'f')
|| (in[0] >= 'A' && in[0] <= 'F')) {
int code = -1;
if ((in[0] >= '0' && in[0] <= '9'))
code = in[0] - '0';
if ((in[0] >= 'a' && in[0] <= 'f'))
@ -1142,7 +1143,9 @@ main(int argc, char **argv)
char *netsize;
int retval;
#ifndef WINDOWS32
pw = NULL;
#endif
username = NULL;
newroot = NULL;
context = NULL;