2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 18:07:25 +00:00

[master] Corrected static analysis issue in common/execute.c

Merged in rt40374.
This commit is contained in:
Thomas Markwalder 2015-09-08 15:06:03 -04:00
parent 5222080182
commit 7da1ac2bc6
2 changed files with 6 additions and 2 deletions

View File

@ -52,8 +52,12 @@ ISC DHCP is open source software maintained by Internet Systems
Consortium. This product includes cryptographic software written
by Eric Young (eay@cryptsoft.com).
Changes since 4.3.3b1
Changes since 4.3.3
- Corrected a static analyzer warning in common/execute.c
[ISC-Bugs #40374]
Changes since 4.3.3b1
- None
Changes since 4.3.2

View File

@ -441,11 +441,11 @@ int execute_statements (result, packet, lease, client_state,
next_let:
if (ns) {
binding = dmalloc(sizeof(*binding), MDL);
memset(binding, 0, sizeof(*binding));
if (!binding) {
blb:
binding_scope_dereference(&ns, MDL);
} else {
memset(binding, 0, sizeof(*binding));
binding->name =
dmalloc(strlen
(e->data.let.name + 1),