mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 04:06:38 +00:00
nfc-poll: fix a potential segfault (Thanks to Phil)
This commit is contained in:
@@ -137,8 +137,8 @@ main (int argc, const char *argv[])
|
||||
};
|
||||
}
|
||||
} else {
|
||||
nfc_disconnect (pnd);
|
||||
nfc_perror (pnd, "nfc_initiator_poll_targets");
|
||||
nfc_disconnect (pnd);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
nfc_disconnect (pnd);
|
||||
|
||||
Reference in New Issue
Block a user