4208. [bug] Address null pointer dereferences on out of memory.

[RT #40764]

(cherry picked from commit fe51e068f0)
This commit is contained in:
Mark Andrews
2015-09-17 08:52:28 +10:00
parent 4e83c1c986
commit 31d8f73ff9
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
4208. [bug] Address null pointer dereferences on out of memory.
[RT #40764]
4207. [bug] Handle class mismatches with raw zone files.
[RT #40746]
+2
View File
@@ -640,6 +640,8 @@ read_sessionkey(isc_mem_t *mctx, isc_log_t *lctx) {
len = strlen(algorithm) + strlen(mykeyname) + strlen(secretstr) + 3;
keystr = isc_mem_allocate(mctx, len);
if (keystr == NULL)
fatal("out of memory");
snprintf(keystr, len, "%s:%s:%s", algorithm, mykeyname, secretstr);
setup_keystr();