Commit 75cc3553 authored by Kishen Maloor's avatar Kishen Maloor

oc_collection: add NULL check

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 1d26fa55
Pipeline #189 passed with stage
in 47 seconds
......@@ -816,7 +816,7 @@ oc_handle_collection_request(oc_method_t method, oc_request_t *request,
}
pay = pay->next;
}
if (oc_string_len(*href) == 0) {
if (!href || (href && oc_string_len(*href) == 0)) {
ecode = oc_status_code(OC_STATUS_BAD_REQUEST);
goto processed_request;
}
......
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