only assign value if request went ok.
This commit is contained in:
parent
cd37a0299c
commit
a742aed5ad
1 changed files with 4 additions and 2 deletions
|
@ -131,8 +131,10 @@ u32_t *value;
|
|||
|
||||
cpf_revoke(g_key);
|
||||
|
||||
/* Assign u32 value. */
|
||||
*value = m.DS_VAL;
|
||||
if(r == OK) {
|
||||
/* Assign u32 value. */
|
||||
*value = m.DS_VAL;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue