projects
/
librfid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
700699f
)
fix crash of librfid-tool in scan function (Mate Soos)
author
Harald Welte
<laforge@gnumonks.org>
Sat, 24 May 2008 13:29:31 +0000
(13:29 +0000)
committer
Harald Welte
<laforge@gnumonks.org>
Sat, 24 May 2008 13:29:31 +0000
(13:29 +0000)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2105
e0336214
-984f-0b4b-a45f-
81c69e1f0ede
utils/librfid-tool.c
patch
|
blob
|
history
diff --git
a/utils/librfid-tool.c
b/utils/librfid-tool.c
index
5f8698c
..
c8b59ea
100644
(file)
--- a/
utils/librfid-tool.c
+++ b/
utils/librfid-tool.c
@@
-456,6
+456,11
@@
static void do_enum(int layer2)
if (rh->reader->l2_supported & (1 << layer2)) {
l2h = rfid_layer2_init(rh, layer2);
+ if (!l2h) {
+ printf("error during layer2(%s)_init\n",
+ l2_names[layer2]);
+ return;
+ }
printf("Layer2 init ok\n");
rc = rfid_layer2_open(l2h);
} else {