aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-02 07:32:54 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-02 07:32:54 +0000
commit99cc9423ee72c2316e4a91665bec79328df143a6 (patch)
treefd3f34b109d286bc00a158064fcb963392ad7a41 /src/transport/plugin_transport_wlan.c
parent22afd78e8b9bce47ebf98e180da75255fa363817 (diff)
downloadgnunet-99cc9423ee72c2316e4a91665bec79328df143a6.tar.gz
gnunet-99cc9423ee72c2316e4a91665bec79328df143a6.zip
fixing stack corruption due to buffer overflow
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index ae0c0ec29..15dd1333d 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1578,7 +1578,6 @@ wlan_plugin_address_to_string (void *cls, const void *addr, size_t addrlen)
1578 GNUNET_snprintf (macstr, sizeof (macstr), "%s.%u.%s", 1578 GNUNET_snprintf (macstr, sizeof (macstr), "%s.%u.%s",
1579 PLUGIN_NAME, ntohl (((struct WlanAddress *) addr)->options), 1579 PLUGIN_NAME, ntohl (((struct WlanAddress *) addr)->options),
1580 mac_to_string (mac)); 1580 mac_to_string (mac));
1581
1582 return macstr; 1581 return macstr;
1583} 1582}
1584 1583
@@ -1710,7 +1709,7 @@ wlan_string_to_address (void *cls, const char *addr, uint16_t addrlen,
1710 struct WlanAddress *wa; 1709 struct WlanAddress *wa;
1711 unsigned int a[6]; 1710 unsigned int a[6];
1712 unsigned int i; 1711 unsigned int i;
1713 char plugin[4]; 1712 char plugin[5];
1714 uint32_t options; 1713 uint32_t options;
1715 1714
1716 if ((NULL == addr) || (addrlen == 0)) 1715 if ((NULL == addr) || (addrlen == 0))