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

- Don't try to look up an object if we didn't get a description with which

to do the lookup (since this would cause a core dump!).
This commit is contained in:
Ted Lemon
1999-10-14 18:15:56 +00:00
parent 0e603324d7
commit 06feb756af

View File

@@ -483,6 +483,13 @@ isc_result_t omapi_message_process (omapi_object_t *mo, omapi_object_t *po)
ISC_R_NOTIMPLEMENTED, message -> id,
"unsearchable object type");
}
if (!message -> object) {
return omapi_protocol_send_status
(po, (omapi_object_t *)0,
ISC_R_NOTFOUND, message -> id,
"no lookup key specified");
}
status = (*(type -> lookup)) (&object, (omapi_object_t *)0,
message -> object);