]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix possible null pointer deference - 9.1 only
authorBrian Wellington <source@isc.org>
Tue, 29 May 2001 22:24:25 +0000 (22:24 +0000)
committerBrian Wellington <source@isc.org>
Tue, 29 May 2001 22:24:25 +0000 (22:24 +0000)
lib/omapi/auth.c

index b1f030a1cdb9eaa0b48d070f2f689533dc8dfa54..0a7f808e08e0c9dc8365b150eb057144c91cb077 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: auth.c,v 1.14.4.1 2001/01/09 22:52:52 bwelling Exp $ */
+/* $Id: auth.c,v 1.14.4.2 2001/05/29 22:24:25 bwelling Exp $ */
 
 /* Principal Author: DCL */
 
@@ -217,7 +217,7 @@ omapi_auth_register(const char *name, unsigned int algorithms,
 
        UNLOCK(&mutex);
 
-       if (result != ISC_R_SUCCESS) {
+       if (result != ISC_R_SUCCESS && new != NULL) {
                if (new->secret != NULL)
                        isc_mem_free(omapi_mctx, new->secret);
                if (new->name != NULL)