nfctype3: Fix possible NULL pointer dereference in nfctype3_recv_UID
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 7 Aug 2012 12:22:30 +0000 (14:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Aug 2012 15:15:47 +0000 (17:15 +0200)
commitf9126e93395a8306b8b98a035697b5bb40946a71
treecaa4e72c390054dc1eb6cc07841844fec4c437c2
parent68e0a143bcb104c87440471401ce1eb19e679211
nfctype3: Fix possible NULL pointer dereference in nfctype3_recv_UID

Check if memory allocation succeed before dereferencing pointer and
free any allocated memory before returning. This also fix memory leak
if call to near_adapter_send failed.
plugins/nfctype3.c