Commit 61220a00 authored by Evan Hunt's avatar Evan Hunt
Browse files

Fix a coredump when adding a class via OMAPI [rt17162]

parent 1d17db44
......@@ -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,
if (!expression_allocate(&class->submatch, MDL))
class->expr->op = expr_hardware;
class->submatch->op = expr_hardware;
} else
} else
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment