]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- memset for consistency
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 9 Oct 2024 07:30:27 +0000 (09:30 +0200)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 9 Oct 2024 08:11:14 +0000 (10:11 +0200)
- no value returned from msghdr_get_ecn when S_SPLINT_S is defined

services/listen_dnsport.c
util/netevent.c

index 0111772860d97b43fdbd98f6387215472ef80b13..22cea48d5295a07d71b20447ba3d0c8540c04eca 100644 (file)
@@ -4737,6 +4737,7 @@ doq_conn_setup(struct doq_conn* conn, uint8_t* scid, size_t scidlen,
        struct ngtcp2_transport_params params;
        memset(&dcid, 0, sizeof(dcid));
        memset(&sv_scid, 0, sizeof(sv_scid));
+       memset(&scid_cid, 0, sizeof(scid_cid));
        memset(&path, 0, sizeof(path));
        memset(&callbacks, 0, sizeof(callbacks));
        memset(&settings, 0, sizeof(settings));
index d55471458f8a438861593c994b93d9491c646bf8..d5c1ec1f6e7532ce75d9fb0ea670d92bf701516a 100644 (file)
@@ -1522,8 +1522,8 @@ msghdr_get_ecn(struct msghdr* msg, int family)
                        return *ecn;
                }
        }
-       return 0;
 #endif /* S_SPLINT_S */
+       return 0;
 }
 
 /** receive packet for DoQ on UDP. get ancillary data for addresses,