]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorBrian Wellington <source@isc.org>
Thu, 22 Feb 2001 23:57:55 +0000 (23:57 +0000)
committerBrian Wellington <source@isc.org>
Thu, 22 Feb 2001 23:57:55 +0000 (23:57 +0000)
client_create() could return ISC_R_SUCCESS when it failed

bin/named/client.c

index 4fb71f69d6deb0b4274538cfd0c4c39f07ddb189..9ab242645af20c7fcbe9c3b19efdf3e1010a241e 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: client.c,v 1.136.2.2 2001/01/16 23:25:16 bwelling Exp $ */
+/* $Id: client.c,v 1.136.2.3 2001/02/22 23:57:55 bwelling Exp $ */
 
 #include <config.h>
 
@@ -1541,6 +1541,7 @@ 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)
+               result = ISC_R_NOMEMORY;
                goto cleanup_message;
 
        client->magic = NS_CLIENT_MAGIC;