]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet issue with sign comparisons
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 27 Jun 2022 14:06:30 +0000 (09:06 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 27 Jun 2022 14:06:50 +0000 (09:06 -0500)
src/lib/util/udpfromto.c

index 92d8d282bba7b75e5f3d271cea905bafef8468f7..11f0a1168bc8ded6546624342af48d8795d583b5 100644 (file)
@@ -296,10 +296,15 @@ int recvfromto(int fd, void *buf, size_t len, int flags,
        if (ifindex) *ifindex = 0;
        if (when) *when = fr_time_wrap(0);
 
+/*
+ *     Needed for emscripten, seems to be an issue in CMSG_NXTHDR
+ */
+DIAG_OFF(sign-compare)
        /* Process auxiliary received data in msgh */
        for (cmsg = CMSG_FIRSTHDR(&msgh);
             cmsg != NULL;
             cmsg = CMSG_NXTHDR(&msgh, cmsg)) {
+DIAG_ON(sign-compare)
 
 #ifdef IP_PKTINFO
                if ((cmsg->cmsg_level == SOL_IP) &&