Commit 438fa584 authored by Kishen Maloor's avatar Kishen Maloor

oc_send_buffer:check validity of ip_context_t

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 19a67b95
Pipeline #1125 passed with stage
in 4 minutes and 49 seconds
......@@ -1050,6 +1050,10 @@ oc_send_buffer(oc_message_t *message)
ip_context_t *dev = get_ip_context_for_device(message->endpoint.device);
if (!dev) {
return -1;
}
#ifdef OC_TCP
if (message->endpoint.flags & TCP) {
return oc_tcp_send_buffer(dev, message, &receiver);
......
......@@ -1048,6 +1048,10 @@ oc_send_buffer(oc_message_t *message)
ip_context_t *dev = get_ip_context_for_device(message->endpoint.device);
if (!dev) {
return -1;
}
#ifdef OC_TCP
if (message->endpoint.flags & TCP) {
return oc_tcp_send_buffer(dev, message, &receiver);
......
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