Fixed OCSerialization NVP Header Reset
authorErich Keane <erich.keane@intel.com>
Wed, 3 Dec 2014 19:52:53 +0000 (11:52 -0800)
committerErich Keane <erich.keane@intel.com>
Fri, 5 Dec 2014 19:57:43 +0000 (11:57 -0800)
commit00cc26fde62572b0bca0cc19cf2c7a40efa12168
tree3d8cc915084c4c115c177ffc7f8862607ad1f034
parentde31af5307c65310c4589b392e4abd16f33725d5
Fixed OCSerialization NVP Header Reset

OCSerialization was not resetting the name-value pair header on error,
so this fixes that issue.  When searching for a NVP that doesn't exist,
cereal/RapidJSON will leave the iterator in a 'bad' place that can result
in not being able to find what we're looking for.

Change-Id: I40c1ee5397ebf2e0eb771ed8a209ea9e75757a33
Signed-off-by: Erich Keane <erich.keane@intel.com>
resource/include/OCSerialization.h