]> git.ipfire.org Git - thirdparty/bind9.git/commit
Handle catopen() errors
authorMichał Kępień <michal@isc.org>
Mon, 13 Jan 2020 13:03:11 +0000 (14:03 +0100)
committerMichał Kępień <michal@isc.org>
Mon, 13 Jan 2020 13:03:11 +0000 (14:03 +0100)
commitdaade37977fafee12c7b3c1483516e010d2b74a6
tree7ce3657108e677d2053ebcc2958abb4ea7c36cac
parent21c707fb9af51aede240046ca16551a0bb38d482
Handle catopen() errors

musl libc's implementation of catgets() crashes when its first argument
is -1 instead of a proper message catalog descriptor.  Prevent that from
happening by making isc_msgcat_get() return the default text if the
prior call to catopen() returns an error.
lib/isc/nls/msgcat.c