From 193326edecdb1f877bad15b7d898fae85a8d175e Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 9 Nov 2012 13:25:12 +0100 Subject: [PATCH] return error for invalid conf --- ykcore/ykcore.c | 1 + 1 file changed, 1 insertion(+) 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)) { -- 2.39.5