]> err.no Git - yubikey-personalization/commitdiff
return error for invalid conf
authorKlas Lindfors <klas@yubico.com>
Fri, 9 Nov 2012 12:25:12 +0000 (13:25 +0100)
committerKlas Lindfors <klas@yubico.com>
Fri, 9 Nov 2012 12:25:12 +0000 (13:25 +0100)
ykcore/ykcore.c

index c938b83209fbec6bc5625626b2101d3dbd1bfb34..57702f4cb9f858af9acf748585d7331a5ffaae16 100644 (file)
@@ -234,6 +234,7 @@ int yk_write_config(YK_KEY *yk, YK_CONFIG *cfg, int confnum,
                command = SLOT_CONFIG2;
                break;
        default:
+               yk_errno = YK_EINVALIDCMD;
                return 0;
        }
        if(!yk_write_command(yk, cfg, command, acc_code)) {