nfctype2: Fix possible NULL pointer dereference in nfctype2_read_meta
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 7 Aug 2012 12:22:26 +0000 (14:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Aug 2012 15:11:02 +0000 (17:11 +0200)
commitcc9d4e9a4a50c6aa1616b07402bce7d76a69a477
treeb2b02c14e7f7f82490d14ed4f7d348a7dcccac59
parent856f9ada31fbc6e43ae0bb6ddf52333a81eb7f12
nfctype2: Fix possible NULL pointer dereference in nfctype2_read_meta

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