Mercurial > hg > quicktun
diff src/common.c @ 9:640f620a55cf V2.1.3
Bugfixes for floating remote and debian upgrade
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 20 Oct 2010 21:08:03 +0200 |
parents | 6d86596d8884 |
children | e4b60d041491 |
line wrap: on
line diff
--- a/src/common.c Thu Oct 14 02:15:55 2010 +0200 +++ b/src/common.c Wed Oct 20 21:08:03 2010 +0200 @@ -206,8 +206,8 @@ else if (fds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) return errorexit("poll error on tap device"); else if (fds[1].revents & (POLLHUP | POLLNVAL)) return errorexit("poll error on udp socket"); if (fds[0].revents & POLLIN) { + len = read(ttfd, buffer_raw + p->offset_raw, p->buffersize_raw); if (session.remote_float == 0 || session.remote_float == 2) { - len = read(ttfd, buffer_raw + p->offset_raw, p->buffersize_raw); len = p->encode(&session, buffer_raw, buffer_enc, len); if (len < 0) return len; if (session.remote_float == 0) {