mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 17:46:40 -04:00
missed one instance of bug fixed in previous change
This commit is contained in:
parent
e672999714
commit
dc9870de55
1 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: client.c,v 1.152 2001/02/22 23:16:59 gson Exp $ */
|
||||
/* $Id: client.c,v 1.153 2001/02/22 23:39:11 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -1523,8 +1523,10 @@ client_create(ns_clientmgr_t *manager, ns_client_t **clientp)
|
|||
|
||||
/* XXXRTH Hardwired constants */
|
||||
client->sendbuf = isc_mem_get(manager->mctx, SEND_BUFFER_SIZE);
|
||||
if (client->sendbuf == NULL)
|
||||
if (client->sendbuf == NULL) {
|
||||
result = ISC_R_NOMEMORY;
|
||||
goto cleanup_message;
|
||||
}
|
||||
|
||||
client->sendevent = (isc_socketevent_t *)
|
||||
isc_event_allocate(manager->mctx, client,
|
||||
|
|
|
|||
Loading…
Reference in a new issue