[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19372 - gnunet/src/dns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19372 - gnunet/src/dns |
Date: |
Wed, 25 Jan 2012 11:00:45 +0100 |
Author: grothoff
Date: 2012-01-25 11:00:45 +0100 (Wed, 25 Jan 2012)
New Revision: 19372
Modified:
gnunet/src/dns/dnsparser.c
Log:
-fix
Modified: gnunet/src/dns/dnsparser.c
===================================================================
--- gnunet/src/dns/dnsparser.c 2012-01-25 09:56:46 UTC (rev 19371)
+++ gnunet/src/dns/dnsparser.c 2012-01-25 10:00:45 UTC (rev 19372)
@@ -256,15 +256,15 @@
off, 0);
if ( (NULL == r->data.soa->mname) ||
(NULL == r->data.soa->rname) ||
- (*off + sizeof (soa) > udp_payload_length) )
+ (*off + sizeof (struct soa_data) > udp_payload_length) )
return GNUNET_SYSERR;
- memcpy (&soa, &udp_payload[*off], sizeof (soa));
+ memcpy (&soa, &udp_payload[*off], sizeof (struct soa_data));
r->data.soa->serial = ntohl (soa.serial);
r->data.soa->refresh = ntohl (soa.refresh);
r->data.soa->retry = ntohl (soa.retry);
r->data.soa->expire = ntohl (soa.expire);
r->data.soa->minimum_ttl = ntohl (soa.minimum);
- (*off) += sizeof (soa);
+ (*off) += sizeof (struct soa_data);
if (old_off + data_len != *off)
return GNUNET_SYSERR;
return GNUNET_OK;
@@ -602,7 +602,7 @@
off,
soa->rname)) ) )
return ret;
- if (*off + sizeof (soa) > dst_len)
+ if (*off + sizeof (struct soa_data) > dst_len)
return GNUNET_NO;
sd.serial = htonl (soa->serial);
sd.refresh = htonl (soa->refresh);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19372 - gnunet/src/dns,
gnunet <=