diff options
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index ce6428a44..5e957871e 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -741,7 +741,7 @@ add_dns_result (struct GNS_ResolverHandle *rh, | |||
741 | res->data_size = data_size; | 741 | res->data_size = data_size; |
742 | res->record_type = record_type; | 742 | res->record_type = record_type; |
743 | res->data = &res[1]; | 743 | res->data = &res[1]; |
744 | memcpy (&res[1], data, data_size); | 744 | GNUNET_memcpy (&res[1], data, data_size); |
745 | GNUNET_CONTAINER_DLL_insert (rh->dns_result_head, | 745 | GNUNET_CONTAINER_DLL_insert (rh->dns_result_head, |
746 | rh->dns_result_tail, | 746 | rh->dns_result_tail, |
747 | res); | 747 | res); |
@@ -1280,7 +1280,7 @@ handle_gns2dns_result (void *cls, | |||
1280 | #if HAVE_SOCKADDR_IN_SIN_LEN | 1280 | #if HAVE_SOCKADDR_IN_SIN_LEN |
1281 | v4.sin_len = (u_char) sa_len; | 1281 | v4.sin_len = (u_char) sa_len; |
1282 | #endif | 1282 | #endif |
1283 | memcpy (&v4.sin_addr, | 1283 | GNUNET_memcpy (&v4.sin_addr, |
1284 | rd[j].data, | 1284 | rd[j].data, |
1285 | sizeof (struct in_addr)); | 1285 | sizeof (struct in_addr)); |
1286 | sa = (struct sockaddr *) &v4; | 1286 | sa = (struct sockaddr *) &v4; |
@@ -1302,7 +1302,7 @@ handle_gns2dns_result (void *cls, | |||
1302 | #if HAVE_SOCKADDR_IN_SIN_LEN | 1302 | #if HAVE_SOCKADDR_IN_SIN_LEN |
1303 | v6.sin6_len = (u_char) sa_len; | 1303 | v6.sin6_len = (u_char) sa_len; |
1304 | #endif | 1304 | #endif |
1305 | memcpy (&v6.sin6_addr, | 1305 | GNUNET_memcpy (&v6.sin6_addr, |
1306 | rd[j].data, | 1306 | rd[j].data, |
1307 | sizeof (struct in6_addr)); | 1307 | sizeof (struct in6_addr)); |
1308 | sa = (struct sockaddr *) &v6; | 1308 | sa = (struct sockaddr *) &v6; |
@@ -1326,7 +1326,7 @@ handle_gns2dns_result (void *cls, | |||
1326 | GNUNET_assert (strlen (rh->g2dc->ns) <= GNUNET_DNSPARSER_MAX_NAME_LENGTH); | 1326 | GNUNET_assert (strlen (rh->g2dc->ns) <= GNUNET_DNSPARSER_MAX_NAME_LENGTH); |
1327 | strcpy (ac->authority_info.dns_authority.name, | 1327 | strcpy (ac->authority_info.dns_authority.name, |
1328 | rh->g2dc->ns); | 1328 | rh->g2dc->ns); |
1329 | memcpy (&ac->authority_info.dns_authority.dns_ip, | 1329 | GNUNET_memcpy (&ac->authority_info.dns_authority.dns_ip, |
1330 | sa, | 1330 | sa, |
1331 | sa_len); | 1331 | sa_len); |
1332 | /* for DNS recursion, the label is the full DNS name, | 1332 | /* for DNS recursion, the label is the full DNS name, |
@@ -1682,7 +1682,7 @@ handle_gns_resolution_result (void *cls, | |||
1682 | GNUNET_break_op (0); | 1682 | GNUNET_break_op (0); |
1683 | break; | 1683 | break; |
1684 | } | 1684 | } |
1685 | memcpy (&pub, rd[i].data, rd[i].data_size); | 1685 | GNUNET_memcpy (&pub, rd[i].data, rd[i].data_size); |
1686 | rd_off++; | 1686 | rd_off++; |
1687 | if (GNUNET_GNSRECORD_TYPE_PKEY != rh->record_type) | 1687 | if (GNUNET_GNSRECORD_TYPE_PKEY != rh->record_type) |
1688 | { | 1688 | { |
@@ -1798,7 +1798,7 @@ handle_gns_resolution_result (void *cls, | |||
1798 | ac->gns_authority = GNUNET_YES; | 1798 | ac->gns_authority = GNUNET_YES; |
1799 | ac->suggested_shortening_label = NULL; | 1799 | ac->suggested_shortening_label = NULL; |
1800 | ac->shortening_started = GNUNET_NO; | 1800 | ac->shortening_started = GNUNET_NO; |
1801 | memcpy (&ac->authority_info.gns_authority, | 1801 | GNUNET_memcpy (&ac->authority_info.gns_authority, |
1802 | rd[i].data, | 1802 | rd[i].data, |
1803 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)); | 1803 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)); |
1804 | ac->label = resolver_lookup_get_next_label (rh); | 1804 | ac->label = resolver_lookup_get_next_label (rh); |