mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 01:49:35 +00:00
Fix a coredump when adding a class via OMAPI [rt17162]
This commit is contained in:
parent
1d17db44a7
commit
61220a0091
2
RELNOTES
2
RELNOTES
@ -50,6 +50,8 @@ work on other platforms. Please report any problems and suggested fixes to
|
||||
|
||||
Changes since 4.1.0a1
|
||||
|
||||
- Fixed a coredump when adding a class via OMAPI.
|
||||
|
||||
- Check whether files are zero length before trying to parse them.
|
||||
|
||||
- Ari Edelkind's PARANOIA patch has been included and may be compiled in
|
||||
|
@ -1869,11 +1869,10 @@ class_set_value (omapi_object_t *h,
|
||||
if (!strncmp("hardware",
|
||||
(char *)value->u.buffer.value, minlen))
|
||||
{
|
||||
if (!expression_allocate(&class->submatch,
|
||||
MDL))
|
||||
if (!expression_allocate(&class->submatch, MDL))
|
||||
return ISC_R_NOMEMORY;
|
||||
|
||||
class->expr->op = expr_hardware;
|
||||
class->submatch->op = expr_hardware;
|
||||
} else
|
||||
return ISC_R_INVALIDARG;
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user