mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 15:41:26 +00:00
Fix some uninitialized variable warnings
This commit is contained in:
parent
24871faa99
commit
cb926cf0c9
|
@ -1215,6 +1215,8 @@ main(int argc, char **argv)
|
|||
int raw_mode;
|
||||
|
||||
memset(password, 0, 33);
|
||||
nameserv_addr = NULL;
|
||||
pw = NULL;
|
||||
username = NULL;
|
||||
foreground = 0;
|
||||
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 *tmp[2];
|
||||
int userid;
|
||||
int version;
|
||||
int code;
|
||||
int read;
|
||||
|
||||
|
@ -339,6 +338,8 @@ handle_null_request(int tun_fd, int dns_fd, struct query *q, int domain_len)
|
|||
memcpy(in, q->name, MIN(domain_len, sizeof(in)));
|
||||
|
||||
if(in[0] == 'V' || in[0] == 'v') {
|
||||
int version = 0;
|
||||
|
||||
read = unpack_data(unpacked, sizeof(unpacked), &(in[1]), domain_len - 1, b32);
|
||||
/* Version greeting, compare and send ack/nak */
|
||||
if (read > 4) {
|
||||
|
@ -1141,6 +1142,7 @@ main(int argc, char **argv)
|
|||
char *netsize;
|
||||
int retval;
|
||||
|
||||
pw = NULL;
|
||||
username = NULL;
|
||||
newroot = NULL;
|
||||
context = NULL;
|
||||
|
|
Loading…
Reference in a new issue