diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2019-09-06 14:33:02 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2019-09-20 10:14:06 +0200 |
commit | 630289cd9a2ef2756b43fe7bd660392cc38d157b (patch) | |
tree | 2d74c727ca70d00feffcf1988967add524df4f13 /modules/nsid | |
parent | lua bindings: compatibility with both libknot versions (diff) | |
download | knot-resolver-630289cd9a2ef2756b43fe7bd660392cc38d157b.tar.xz knot-resolver-630289cd9a2ef2756b43fe7bd660392cc38d157b.zip |
libknot compatibility: knot_edns_get_option()
Diffstat (limited to 'modules/nsid')
-rw-r--r-- | modules/nsid/nsid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/nsid/nsid.c b/modules/nsid/nsid.c index f5c8e627..fee2da1e 100644 --- a/modules/nsid/nsid.c +++ b/modules/nsid/nsid.c @@ -30,7 +30,11 @@ static int nsid_finalize(kr_layer_t *ctx) { if (src_opt == NULL) return ctx->state; - const uint8_t *req_nsid = knot_edns_get_option(src_opt, KNOT_EDNS_OPTION_NSID); + const uint8_t *req_nsid = knot_edns_get_option(src_opt, KNOT_EDNS_OPTION_NSID + #if KNOT_VERSION_MINOR >= 9 + , NULL + #endif + ); /* NSID option must be explicitly requested */ if (req_nsid == NULL) return ctx->state; |