2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

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

[RT #38311]
This commit is contained in:
Mark Andrews 2015-01-11 09:24:33 +11:00
parent 6124e803cf
commit f4dda9cf28
2 changed files with 5 additions and 0 deletions

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]

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;