aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-wlan.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-16 17:37:30 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-16 17:37:30 +0000
commit5c6866ff424ec0292ea1b5cc637c5a0d87021c82 (patch)
treee23358a037cd465a9f74d0e4864c9d3742d41ca7 /src/transport/gnunet-helper-transport-wlan.c
parent89b4941e400fce0e4abaf7b456caf11d236b2587 (diff)
downloadgnunet-5c6866ff424ec0292ea1b5cc637c5a0d87021c82.tar.gz
gnunet-5c6866ff424ec0292ea1b5cc637c5a0d87021c82.zip
-fix
Diffstat (limited to 'src/transport/gnunet-helper-transport-wlan.c')
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index 1b599d1ce..f50cc2385 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -1879,7 +1879,8 @@ stdin_send_hw (void *cls, const struct GNUNET_MessageHeader *hdr)
1879 break; 1879 break;
1880 case ARPHRD_ETHER: 1880 case ARPHRD_ETHER:
1881 etheader.dst = header->frame.addr1; 1881 etheader.dst = header->frame.addr1;
1882 etheader.src = header->frame.addr2; 1882 /* etheader.src = header->frame.addr2; --- untrusted input */
1883 etheader.src = dev->pl_mac;
1883 etheader.type = htons (ETH_P_IP); 1884 etheader.type = htons (ETH_P_IP);
1884 memcpy (write_pout.buf, &etheader, sizeof (etheader)); 1885 memcpy (write_pout.buf, &etheader, sizeof (etheader));
1885 memcpy (&write_pout.buf[sizeof (etheader)], &header[1], sendsize - sizeof (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame)); 1886 memcpy (&write_pout.buf[sizeof (etheader)], &header[1], sendsize - sizeof (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame));