]> err.no Git - yubikey-personalization/commitdiff
don't go into error-reporting mode before we can have errors
authorKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 11:54:33 +0000 (13:54 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 11:54:33 +0000 (13:54 +0200)
ykchalresp.c

index b9a165c100ff48e5fc9c23fa2f3c7c9bbf1d7d84..c307048b86228a46c33176a159283bed1923cb57 100644 (file)
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
                         &challenge, &challenge_len,
                         &hmac, &may_block,
                         &exit_code))
-               goto err;
+               exit(exit_code);
 
        if (!yk_init()) {
                exit_code = 1;