Fix crash in csdk/sample/ocserver on resource PUT.
authorCharlie Lenahan <charlie.lenahan@intel.com>
Mon, 20 Apr 2015 23:30:35 +0000 (19:30 -0400)
committerErich Keane <erich.keane@intel.com>
Fri, 24 Apr 2015 18:26:15 +0000 (18:26 +0000)
commitdaa3461e745e26015cb5c158d00ddbcb9385b3a4
treed309b30ae33e29e353665b1bab40712207ffee1a
parentb375f4a80ca772377d2566ecac334f27514599ac
Fix crash in csdk/sample/ocserver on resource PUT.

If a client does a resource PUT with only power OR state (not both),
then it will crash.

Change-Id: If19ce5edaf1f3538443074e8a66fa836ef5290c9
Signed-off-by: Charlie Lenahan <charlie.lenahan@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/788
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp