handover: Try to send HS only if message preparation succeed
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 21 Sep 2012 14:48:30 +0000 (16:48 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 1 Oct 2012 08:16:52 +0000 (10:16 +0200)
commit1cbd87de4ff9fff99180c9c4bae038d0d8d988bf
treeede6d0b1208fbdfd857909b04ec2778fd33ef0fe
parent32bd45acc3d305c145ea21e2372e51e356cf53e3
handover: Try to send HS only if message preparation succeed

near_ndef_prepare_handover_record can return NULL in message
preparation failed e.g. due to failure in requesting data from handover
agent. This could result in crash due to NULL pointer dereference.
plugins/handover.c