nfctype1: Fix possible NULL pointer dereference in nfctype1_read
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 7 Aug 2012 12:22:25 +0000 (14:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Aug 2012 15:09:03 +0000 (17:09 +0200)
commit856f9ada31fbc6e43ae0bb6ddf52333a81eb7f12
tree0ad8a275aff4725553c2bcc0c2c278a9b5f9b390
parentbab2d8a91b50856a235ea314eca6a0c04898c4e9
nfctype1: Fix possible NULL pointer dereference in nfctype1_read

Check if memory allocation succeed before dereferencing pointer.
plugins/nfctype1.c