aboutsummaryrefslogtreecommitdiff
path: root/src/dns/gnunet-service-dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns/gnunet-service-dns.c')
-rw-r--r--src/dns/gnunet-service-dns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c
index 1f48b105a..37d2fbca8 100644
--- a/src/dns/gnunet-service-dns.c
+++ b/src/dns/gnunet-service-dns.c
@@ -1268,6 +1268,7 @@ process_helper_messages (void *cls GNUNET_UNUSED, void *client,
1268 { 1268 {
1269 case ETH_P_IPV4: 1269 case ETH_P_IPV4:
1270 ip4 = (const struct GNUNET_TUN_IPv4Header *) &tun[1]; 1270 ip4 = (const struct GNUNET_TUN_IPv4Header *) &tun[1];
1271 ip6 = NULL; /* make compiler happy */
1271 if ( (msize < sizeof (struct GNUNET_TUN_IPv4Header)) || 1272 if ( (msize < sizeof (struct GNUNET_TUN_IPv4Header)) ||
1272 (ip4->version != 4) || 1273 (ip4->version != 4) ||
1273 (ip4->header_length != sizeof (struct GNUNET_TUN_IPv4Header) / 4) || 1274 (ip4->header_length != sizeof (struct GNUNET_TUN_IPv4Header) / 4) ||
@@ -1283,6 +1284,7 @@ process_helper_messages (void *cls GNUNET_UNUSED, void *client,
1283 msize -= sizeof (struct GNUNET_TUN_IPv4Header); 1284 msize -= sizeof (struct GNUNET_TUN_IPv4Header);
1284 break; 1285 break;
1285 case ETH_P_IPV6: 1286 case ETH_P_IPV6:
1287 ip4 = NULL; /* make compiler happy */
1286 ip6 = (const struct GNUNET_TUN_IPv6Header *) &tun[1]; 1288 ip6 = (const struct GNUNET_TUN_IPv6Header *) &tun[1];
1287 if ( (msize < sizeof (struct GNUNET_TUN_IPv6Header)) || 1289 if ( (msize < sizeof (struct GNUNET_TUN_IPv6Header)) ||
1288 (ip6->version != 6) || 1290 (ip6->version != 6) ||