]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Address static analysis warnings.
authorMark Andrews <marka@isc.org>
Thu, 23 May 2013 04:21:20 +0000 (14:21 +1000)
committerMark Andrews <marka@isc.org>
Thu, 23 May 2013 04:21:20 +0000 (14:21 +1000)
  [ISC-Bugs #33510] [ISC-Bugs #33511]

RELNOTES
server/omapi.c

index cf356c4bad17fe51610367e48a4a5fae4a12ef8c..ea607206a066b65baa155b60d63ba31f2c9102d7 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -61,7 +61,7 @@ work on other platforms. Please report any problems and suggested fixes to
                        Changes since 4.2.5
 
 - Address static analysis warnings.
-  [ISC-Bugs #33510]
+  [ISC-Bugs #33510] [ISC-Bugs #33511]
 
 - Silence benign static analysis warnings.
   [ISC-Bugs #33428]
index 5901cc551ab28df96c7bf2e69ccb86e6e16e8bd1..9a44fc0b84d1ed71d0fdf48d7cfc85687938aa46 100644 (file)
@@ -3,7 +3,7 @@
    OMAPI object interfaces for the DHCP server. */
 
 /*
- * Copyright (c) 2004-2009,2012 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004-2009,2012,2013 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 1999-2003 by Internet Software Consortium
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -2418,7 +2418,6 @@ isc_result_t binding_scope_set_value (struct binding_scope *scope, int createp,
                }
                memset (bp, 0, sizeof *bp);
                bp -> name = nname;
-               nname = (char *)0;
                bp -> next = scope -> bindings;
                scope -> bindings = bp;
        } else {
@@ -2534,6 +2533,8 @@ isc_result_t binding_scope_stuff_values (omapi_object_t *c,
                    status = (omapi_connection_put_uint32
                              (c,
                               ((u_int32_t)(bp -> value -> value.boolean))));
+                   if (status != ISC_R_SUCCESS)
+                           return status;
                    break;
 
                  case binding_data:
@@ -2558,6 +2559,8 @@ isc_result_t binding_scope_stuff_values (omapi_object_t *c,
                    status = (omapi_connection_put_uint32
                              (c, ((u_int32_t)
                                   (bp -> value -> value.intval))));
+                   if (status != ISC_R_SUCCESS)
+                           return status;
                    break;