mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Fix a coredump when adding a class via OMAPI [rt17162]
This commit is contained 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
|
||||
|
Reference in New Issue
Block a user