Merge branch '674-abort-when-memory-allocation-fails-v9_11-strerror-fix' into 'v9_11'

Resolve "Abort when memory allocation or other mandatory resource allocation fails"

See merge request isc-projects/bind9!1278
This commit is contained in:
Ondřej Surý 2018-12-21 03:29:06 -05:00
commit 158e3187a3

View file

@ -898,7 +898,7 @@ internal_memalloc(void *arg, size_t size) {
if (ptr == NULL && size != 0) {
char strbuf[ISC_STRERRORSIZE];
strerror_r(errno, strbuf, sizeof(strbuf));
isc__strerror(errno, strbuf, sizeof(strbuf));
isc_error_fatal(__FILE__, __LINE__, "malloc failed: %s", strbuf);
}