From: Klas Lindfors Date: Fri, 9 Nov 2012 12:25:12 +0000 (+0100) Subject: return error for invalid conf X-Git-Tag: v1.10.0~39 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=193326edecdb1f877bad15b7d898fae85a8d175e;p=yubikey-personalization return error for invalid conf --- diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index c938b83..57702f4 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -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)) {