4033. [bug] Missing out of memory check in request.c:req_send.

[RT #38311]

(cherry picked from commit f4dda9cf28)
This commit is contained in:
Mark Andrews
2015-01-11 09:24:59 +11:00
parent 45adb24e0f
commit 38e0062bbd
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
4033. [bug] Missing out of memory check in request.c:req_send.
[RT #38311]
4032. [bug] Built-in "empty" zones did not correctly inherit the
"allow-transfer" ACL from the options or view.
[RT #38310]
+2
View File
@@ -444,6 +444,8 @@ req_send(dns_request_t *request, isc_task_t *task, isc_sockaddr_t *address) {
sendevent = isc_socket_socketevent(request->mctx, socket,
ISC_SOCKEVENT_SENDDONE,
req_senddone, request);
if (sendevent == NULL)
return (ISC_R_NOMEMORY);
if (request->dscp == -1) {
sendevent->attributes &= ~ISC_SOCKEVENTATTR_DSCP;
sendevent->dscp = 0;