fix build issues
[oweals/gnunet.git] / src / gnsrecord / gnsrecord_misc.c
index 315835c042a9b4c2c5f6a59c290a1b355593dee9..4c3bf6fa8f89a3ad02390073e70e686b469f6ab6 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009-2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009-2013 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -185,7 +185,7 @@ GNUNET_GNSRECORD_record_get_expiration_time (unsigned int rd_count,
       /* We have a shadow record */
       if (0 != (rd[c2].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION))
       {
-        rt_shadow.rel_value_us = rd[2].expiration_time;
+        rt_shadow.rel_value_us = rd[c2].expiration_time;
         at_shadow = GNUNET_TIME_relative_to_absolute (rt_shadow);
       }
       else