tolerate additional IPv4 address now available for gnunet.org
[oweals/gnunet.git] / src / util / dnsstub.c
index 8b5b20f3c8b23f8f0d96f0c402bf7c9967e28f3a..a16a9a7dd2fdd7c7586d85729cc3ac235af6a375 100644 (file)
@@ -14,6 +14,8 @@
     
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
 */
 /**
  * @file dns/dnsstub.c
@@ -354,7 +356,7 @@ do_dns_read (struct GNUNET_DNSSTUB_RequestSocket *rs,
                  "Received DNS response from server we never asked (ignored)");
       return GNUNET_NO;
     }
-    if (sizeof (struct GNUNET_TUN_DnsHeader) > r)
+    if (sizeof (struct GNUNET_TUN_DnsHeader) > (size_t) r)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                  _("Received DNS response that is too small (%u bytes)"),