Fix segfault in ocserver on invalid PUT json
authorCharlie Lenahan <charlie.lenahan@intel.com>
Tue, 16 Jun 2015 22:01:27 +0000 (18:01 -0400)
committerErich Keane <erich.keane@intel.com>
Wed, 17 Jun 2015 05:16:41 +0000 (05:16 +0000)
commit507296ce3f50da0fef131ea59e75b8d6cf2eb842
tree7753abd56aa6b33551b16603e44e85c6fb8749d6
parent1b3989f5777db18d830407badd8e0332c1b1e33e
Fix segfault in ocserver on invalid PUT json

If a client does a PUT with json that has the old "oc"
instead of "oic" it will cause a crash.

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