Message ID | 20250731152912.21826-1-gert@greenie.muc.de |
---|---|
State | New |
Headers | show |
Series | [Openvpn-devel,v1] Fix wrong byte order of --dns server | expand |
Yeah, git rebase accident in the "offending" patch (patch was written, bug was fixed in the "to-be-moved" code, git rebase adjusted the "old" side, but had no way to fix this for the "new" side and nobody noticed). Let's try to get better DNS coverage into the automated Windows test rig. As for the test, just stared at the code and did a windows compile test - as Lev wrote, we have fixed this bug before (doubly annoying). Your patch has been applied to the master branch. commit 63fed92c96c23e061a64683cab431db1269e3f73 Author: Lev Stipakov Date: Thu Jul 31 17:29:06 2025 +0200 Fix wrong byte order of --dns server Signed-off-by: Lev Stipakov <lev@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20250731152912.21826-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32460.html Signed-off-by: Gert Doering <gert@greenie.muc.de> -- kind regards, Gert Doering
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 3ceada0..ff9addd 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -3573,7 +3573,7 @@ { if (s->addr[i].family == AF_INET && tt->dns_len + 1 < N_DHCP_ADDR) { - tt->dns[tt->dns_len++] = s->addr[i].in.a4.s_addr; + tt->dns[tt->dns_len++] = ntohl(s->addr[i].in.a4.s_addr); } else if (tt->dns6_len + 1 < N_DHCP_ADDR) {