diff options
author | Ted Lemon <source@isc.org> | 1999-10-14 18:15:56 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1999-10-14 18:15:56 +0000 |
commit | 06feb756af79c5a84a8bb653e07fde2aea05c80f (patch) | |
tree | 5375db7cfc312661fb2726871a35ebfeda7da0f3 /omapip/message.c | |
parent | 0e603324d700d762f10fe998b9b5b31040e74af8 (diff) | |
download | isc-dhcp-06feb756af79c5a84a8bb653e07fde2aea05c80f.tar.gz |
- 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!).
Diffstat (limited to 'omapip/message.c')
-rw-r--r-- | omapip/message.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/omapip/message.c b/omapip/message.c index 5e51a204..fcc5423c 100644 --- a/omapip/message.c +++ b/omapip/message.c @@ -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); |