Initialize response payload in entity handler
authorOmkar Hegde <omkar.m.hegde@intel.com>
Wed, 22 Jul 2015 22:38:12 +0000 (15:38 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 23 Jul 2015 00:22:28 +0000 (00:22 +0000)
commitbc84eec6db3540de9141d5131faf3da60eb41020
treefd5fe208085c8810506d56997624897c04a3a675
parentcb4bbd915048862e87bb74604c8c6a362c46ec09
Initialize response payload in entity handler

As no payload is set for observe deregister and the response
payload was uninitialized, the payload destroy method caused a
segfault. This fixes IOT-611.

Change-Id: I050587c18fee922bfe61522f3ba7af6a2b207b09
Signed-off-by: Omkar Hegde <omkar.m.hegde@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1828
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp