]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For #762: Silence maybe-uninitialized compiler warning.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 7 Aug 2023 09:20:48 +0000 (11:20 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 7 Aug 2023 09:20:48 +0000 (11:20 +0200)
util/edns.c

index 87eebef2adc8b62a12c74ccaf3ce974f8892d792..d4db29a65a005c10da87b44d11a34d6d4fd2a4d9 100644 (file)
@@ -159,7 +159,8 @@ edns_cookie_server_validate(const uint8_t* cookie, size_t cookie_len,
        const uint8_t* hash_input, uint32_t now)
 {
        uint8_t hash[8];
-       uint32_t timestamp, subt_1982;
+       uint32_t timestamp;
+       uint32_t subt_1982 = 0; /* Initialize for the compiler; unused value */
        int comp_1982;
        if(cookie_len != 24 ||      /* RFC9018 cookies are 24 bytes long */
                secret_len != 16 || /* RFC9018 cookies have 16 byte secrets */