Skip to content

refuse_non_local crashes unbound Windows service #1022

Closed
@RBetting77

Description

@RBetting77

Describe the bug
Using refuse_non_local crashes the unbound Windows service when the first query is refused.

To reproduce
Steps to reproduce the behavior:

  1. In service.conf, under "server:" use the next line: "access-control: 0.0.0.0/0 refuse_non_local"
  2. Local queries get answered with no problem
  3. The first recursive query which should be refused crashes the unbound service.

Expected behavior
The refusal of the non-local query.

System:

  • Unbound version: Version 1.19.1
  • OS: Windows 10, 22H2 19045.3930
  • unbound -V output:
Version 1.19.1

Configure line: --host=x86_64-w64-mingw32 --build=x86_64-redhat-linux-gnu --target=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw --exec-prefix=/usr/x86_64-w64-mingw32/sys-root/mingw --bindir=/usr/x86_64-w64-mingw32/sys-root/mingw/bin --sbindir=/usr/x86_64-w64-mingw32/sys-root/mingw/sbin --sysconfdir=/usr/x86_64-w64-mingw32/sys-root/mingw/etc --datadir=/usr/x86_64-w64-mingw32/sys-root/mingw/share --includedir=/usr/x86_64-w64-mingw32/sys-root/mingw/include --libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib --libexecdir=/usr/x86_64-w64-mingw32/sys-root/mingw/libexec --localstatedir=/usr/x86_64-w64-mingw32/sys-root/mingw/var --sharedstatedir=/usr/x86_64-w64-mingw32/sys-root/mingw/com --mandir=/usr/x86_64-w64-mingw32/sys-root/mingw/share/man --infodir=/usr/x86_64-w64-mingw32/sys-root/mingw/share/info --enable-debug --enable-static-exe --disable-flto --disable-gost --with-ssl=/home/wouter/src/unbound/unbound-dist-giKu5n/sslinstall --with-libexpat=/home/wouter/src/unbound/unbound-dist-giKu5n/wxpinstall
Linked libs: event winsock (it uses WSAWaitForMultipleEvents), OpenSSL 1.1.1l  24 Aug 2021

Additional information
service.conf:

server:
       interface: 0.0.0.0
       access-control: 0.0.0.0/0 refuse_non_local

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions