diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-11 12:34:09 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-11 12:34:09 +0000 |
commit | 7b09b820fb3e78c586b91874aea4d0f79d060781 (patch) | |
tree | 02e2d2f539f46e26b8b8c7b7c436d9c17c126d1b /src/transport/plugin_transport_wlan.c | |
parent | 2874588334576b7fdce753ea97ab2956d5e8bf28 (diff) | |
download | gnunet-7b09b820fb3e78c586b91874aea4d0f79d060781.tar.gz gnunet-7b09b820fb3e78c586b91874aea4d0f79d060781.zip |
fix: wrong address length
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index ee3163dd9..438396081 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1213,11 +1213,11 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
1213 | hdr, | 1213 | hdr, |
1214 | mas->session, | 1214 | mas->session, |
1215 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, | 1215 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, |
1216 | (mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress)); | 1216 | (mas->endpoint == NULL) ? 0 : sizeof (struct WlanAddress)); |
1217 | plugin->env->update_address_metrics (plugin->env->cls, | 1217 | plugin->env->update_address_metrics (plugin->env->cls, |
1218 | &tmpsource, | 1218 | &tmpsource, |
1219 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, | 1219 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, |
1220 | (mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress), | 1220 | (mas->endpoint == NULL) ? 0 : sizeof (struct WlanAddress), |
1221 | mas->session, | 1221 | mas->session, |
1222 | &ats, 1); | 1222 | &ats, 1); |
1223 | break; | 1223 | break; |