mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 00:59:59 -04:00
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:
commit
158e3187a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue