Initialize 'inside_topdomain'. Fixes #94

This commit is contained in:
Erik Ekman 2010-11-25 17:40:35 +00:00 committed by Erik Ekman
parent 3db5ccaf33
commit 23eb466c81
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ CHANGES:
- Merged low-latency patch from Anne Bezemer, fixes #76.
- Resolve client nameserver argument if given as hostname, fixes #82.
- Open log before chroot, fixes #86: logging on FreeBSD.
- Fix DNS tunneling bug caused by uninitialized variable, #94
2009-06-01: 0.5.2 "WifiFree"
- Fixed client segfault on OS X, #57

View File

@ -1567,7 +1567,7 @@ tunnel_dns(int tun_fd, int dns_fd, int bind_fd)
struct query q;
int read;
int domain_len;
int inside_topdomain;
int inside_topdomain = 0;
if ((read = read_dns(dns_fd, tun_fd, &q)) <= 0)
return 0;