- LRN's patch 2191
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 2 Mar 2012 11:54:44 +0000 (11:54 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 2 Mar 2012 11:54:44 +0000 (11:54 +0000)
src/namestore/namestore_common.c

index 7d1876eecd6e0ae87c3bccb7275b4f8ba72ee99f..2e0a58c620ad9a1dabb611dfdf4b8f80a4da46b7 100644 (file)
@@ -185,7 +185,7 @@ GNUNET_NAMESTORE_records_deserialize (size_t len,
     dest[i].flags = ntohl (rec.flags);
     off += sizeof (rec);
 
-    if (off + sizeof (dest[i].data_size) > len)
+    if (off + dest[i].data_size > len)
       return GNUNET_SYSERR;
     dest[i].data = &src[off];
     off += dest[i].data_size;