Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Conversation

@diegonix
Copy link

Modern libunbound (1.4.20+) has a direct 'ttl' field in struct ub_result.
The previous pointer arithmetic approach was fragile and often returned 0.
This fix directly accesses r->ttl which is reliable and safe.

Fixes TTL=0 issue with libunbound 1.19.2 and other modern versions.

Tested with libunbound 1.19.2 on Ubuntu 24.04.

Modern libunbound (1.4.20+) has a direct 'ttl' field in struct ub_result.
The previous pointer arithmetic approach was fragile and often returned 0.
This fix directly accesses r->ttl which is reliable and safe.

Fixes TTL=0 issue with libunbound 1.19.2 and other modern versions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant