diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-14 12:55:42 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-19 16:34:10 +0200 |
commit | 443e50b1a447dee6181aa721fb310060cecd63ae (patch) | |
tree | e673ed2ea84753cfac82d18008b137ec35ca8749 /NitrokeyManager.cc | |
parent | 18f427f6bf50f64ba3b4b2c1c1dd168f0c8fdb76 (diff) | |
download | libnitrokey-443e50b1a447dee6181aa721fb310060cecd63ae.tar.gz libnitrokey-443e50b1a447dee6181aa721fb310060cecd63ae.tar.bz2 |
Fixed too long string test fail caused by different behavior of Storage
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index ac6ce77..872ebb4 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -280,11 +280,10 @@ namespace nitrokey{ auto p = get_payload<ChangeAdminUserPin20Current>(); strcpyT(p.old_pin, current_PIN); p.set_kind(StoKind); - ChangeAdminUserPin20Current::CommandTransaction::run(*device, p); - auto p2 = get_payload<ChangeAdminUserPin20New>(); strcpyT(p2.new_pin, new_PIN); p2.set_kind(StoKind); + ChangeAdminUserPin20Current::CommandTransaction::run(*device, p); ChangeAdminUserPin20New::CommandTransaction::run(*device, p2); } break; |