fix compatibility issue

This commit is contained in:
clowwindy
2014-04-19 20:46:12 +08:00
parent 3511f23d0c
commit 086c9de780
+5 -1
View File
@@ -515,11 +515,15 @@ static void remote_recv_cb (EV_P_ ev_io *w, int revents)
}
int len = parse_udprealy_header(buf, buf_len, NULL, NULL);
if (len == 0 || len != addr_header_len)
if (len == 0)
{
LOGD("[udp] Error in parse header");
// error in parse header
goto CLEAN_UP;
}
// server may return using a different address type other than the type we
// have used during sending
addr_header_len = len;
#ifdef UDPRELAY_TUNNEL
// Construct packet