diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-02 07:54:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-02 07:54:03 +0000 |
commit | 57d9507ca85eb43efc132242a4c4248bee37315a (patch) | |
tree | f437cc47409a46da3a52ca442cde6ec692024bf5 /src/transport/plugin_transport_wlan.c | |
parent | dcd964b7827103ab72c66f95adbd92af245aac06 (diff) | |
download | gnunet-57d9507ca85eb43efc132242a4c4248bee37315a.tar.gz gnunet-57d9507ca85eb43efc132242a4c4248bee37315a.zip |
fix failing tests: returned wrong address size
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 15dd1333d..b50ed986c 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1186,7 +1186,7 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
1186 | GNUNET_break_op (0); | 1186 | GNUNET_break_op (0); |
1187 | break; | 1187 | break; |
1188 | } | 1188 | } |
1189 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1189 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1190 | "Processing %u bytes of HELLO from peer `%s' at MAC %s\n", | 1190 | "Processing %u bytes of HELLO from peer `%s' at MAC %s\n", |
1191 | (unsigned int) msize, | 1191 | (unsigned int) msize, |
1192 | GNUNET_i2s (&tmpsource), | 1192 | GNUNET_i2s (&tmpsource), |
@@ -1323,11 +1323,11 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
1323 | hdr, | 1323 | hdr, |
1324 | mas->session, | 1324 | mas->session, |
1325 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, | 1325 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, |
1326 | (mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress)); | 1326 | (mas->endpoint == NULL) ? 0 : sizeof (struct WlanAddress)); |
1327 | plugin->env->update_address_metrics (plugin->env->cls, | 1327 | plugin->env->update_address_metrics (plugin->env->cls, |
1328 | &mas->session->target, | 1328 | &mas->session->target, |
1329 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, | 1329 | (mas->endpoint == NULL) ? NULL : (const char *) &mas->endpoint->addr, |
1330 | (mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress), | 1330 | (mas->endpoint == NULL) ? 0 : sizeof (struct WlanAddress), |
1331 | mas->session, | 1331 | mas->session, |
1332 | &ats, 1); | 1332 | &ats, 1); |
1333 | break; | 1333 | break; |