mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 07:35:26 +00:00
uninitaliased variable
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -621,8 +621,10 @@ ns_client_send(ns_client_t *client) {
|
|||||||
*/
|
*/
|
||||||
INSIST(client->tcpbuf == NULL);
|
INSIST(client->tcpbuf == NULL);
|
||||||
client->tcpbuf = isc_mem_get(client->mctx, TCP_BUFFER_SIZE);
|
client->tcpbuf = isc_mem_get(client->mctx, TCP_BUFFER_SIZE);
|
||||||
if (client->tcpbuf == NULL)
|
if (client->tcpbuf == NULL) {
|
||||||
|
result = ISC_R_NOMEMORY;
|
||||||
goto done;
|
goto done;
|
||||||
|
}
|
||||||
data = client->tcpbuf;
|
data = client->tcpbuf;
|
||||||
isc_buffer_init(&tcpbuffer, data, TCP_BUFFER_SIZE);
|
isc_buffer_init(&tcpbuffer, data, TCP_BUFFER_SIZE);
|
||||||
isc_buffer_init(&buffer, data + 2, TCP_BUFFER_SIZE - 2);
|
isc_buffer_init(&buffer, data + 2, TCP_BUFFER_SIZE - 2);
|
||||||
|
Reference in New Issue
Block a user