2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

- Address static analysis warnings.

[ISC-Bugs #33510] [ISC-Bugs #33511]
This commit is contained in:
Mark Andrews
2013-05-23 14:21:20 +10:00
parent d0a10f6ac3
commit 9626483bbb
2 changed files with 6 additions and 3 deletions

View File

@@ -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]

View 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;