Commit 8d925454 authored by Mandeep Shetty's avatar Mandeep Shetty Committed by Dan Mihai

Check if stack is init'ed in call to OCProcess()

OCProcess() returned OC_STACK_OK even when the stack was
not initialized.

Note that even with returning OC_STACK_OK, it was
effectively a no-op as all the other calls in OCProcess() checked for
initialization.

Change-Id: I84423f19390ae840e785e340bc458a5b41b0795a
Signed-off-by: default avatarMandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16589Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarDan Mihai <Daniel.Mihai@microsoft.com>
parent 9c10aa93
......@@ -3187,6 +3187,10 @@ exit:
OCStackResult OCProcess()
{
if (stackState == OC_STACK_UNINITIALIZED)
{
return OC_STACK_ERROR;
}
#ifdef WITH_PRESENCE
OCProcessPresence();
#endif
......
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