Skip to content

Commit e5bef9c

Browse files
pcscd: always exit if HPRegisterForHotplugEvents() fails
This is a correction of 2cf20c9 from 2012.
1 parent 284bae2 commit e5bef9c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/pcscdaemon.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,12 +756,11 @@ int main(int argc, char **argv)
756756
* Set up the search for USB/PCMCIA devices
757757
*/
758758
rv = HPSearchHotPluggables(hpDirPath);
759-
#ifndef USE_SERIAL
760759
if (rv)
760+
{
761+
Log0(PCSC_LOG_CRITICAL);
761762
at_exit();
762-
#else
763-
(void)rv;
764-
#endif
763+
}
765764

766765
rv = HPRegisterForHotplugEvents(hpDirPath);
767766
if (rv)

0 commit comments

Comments
 (0)