diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-01-22 11:30:38 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-01-22 11:30:38 +0100 |
commit | 3771bc6ae53e783ae3e80e3ffd0e8e437e8efb7b (patch) | |
tree | a50345aa53b54c6c8e31339011a1ddf80fd6dedd /src | |
parent | ed93a5f30bc5be7daed1738812e090707a319090 (diff) |
secmgr: ensure that unknown error exist
Change-Id: I82650b1dbd1cb47f9d5d20146b013e18667da6cc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r-- | src/secmgr-wrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/secmgr-wrap.c b/src/secmgr-wrap.c index 57f5d20..78680a5 100644 --- a/src/secmgr-wrap.c +++ b/src/secmgr-wrap.c @@ -36,7 +36,7 @@ static int retcode(enum lib_retcode rc) case SECURITY_MANAGER_ERROR_REQ_NOT_COMPLETE: errno = EBADMSG; break; case SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED: errno = EPERM; break; case SECURITY_MANAGER_ERROR_ACCESS_DENIED: errno = EACCES; break; - default: errno = 0; break; + default: errno = ECANCELED; break; } return -1; } |