Fix compiler warning.

This commit is contained in:
Simon Kelley
2024-02-02 00:26:44 +00:00
parent 12ddb2a4b9
commit 86c15032ba

View File

@@ -462,6 +462,8 @@ static int find_soa(struct dns_header *header, size_t qlen, char *name, int *sub
int i, j;
size_t name_len, soa_len, len;
union all_addr addr;
(void)secure; /* warning */
/* first move to NS section and find TTL from SOA RR */
if (!(p = skip_questions(header, qlen)) ||