2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

uninitaliased variable

This commit is contained in:
Mark Andrews
2000-06-22 23:48:07 +00:00
parent 1a225a9907
commit 51eb7d0c5c

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: client.c,v 1.97 2000/06/22 23:04:27 tale Exp $ */
/* $Id: client.c,v 1.98 2000/06/22 23:48:07 marka Exp $ */
#include <config.h>
@@ -621,8 +621,10 @@ ns_client_send(ns_client_t *client) {
*/
INSIST(client->tcpbuf == NULL);
client->tcpbuf = isc_mem_get(client->mctx, TCP_BUFFER_SIZE);
if (client->tcpbuf == NULL)
if (client->tcpbuf == NULL) {
result = ISC_R_NOMEMORY;
goto done;
}
data = client->tcpbuf;
isc_buffer_init(&tcpbuffer, data, TCP_BUFFER_SIZE);
isc_buffer_init(&buffer, data + 2, TCP_BUFFER_SIZE - 2);