diff --git a/src/local.c b/src/local.c index 53888f3e..8fbca925 100644 --- a/src/local.c +++ b/src/local.c @@ -660,7 +660,11 @@ server_recv_cb(EV_P_ ev_io *w, int revents) LOGI("connect to [%s]:%s", ip, port); } - if (acl && !(vpn && strcmp(port, "53") == 0)) { + if (acl +#ifdef ANDROID + && !(vpn && strcmp(port, "53") == 0) +#endif + ) { int host_match = acl_match_host(host); int bypass = 0; if (host_match > 0) diff --git a/src/utils.c b/src/utils.c index 5ebd3672..784c7b53 100644 --- a/src/utils.c +++ b/src/utils.c @@ -233,7 +233,7 @@ void * ss_align(size_t size) { int err; - void *tmp; + void *tmp = NULL; #ifdef HAVE_POSIX_MEMALIGN err = posix_memalign(&tmp, sizeof(void *), size); #else