diff --git a/mesh/keyring.c b/mesh/keyring.c
index 41cb2e9..4a6f9f2 100644
--- a/mesh/keyring.c
+++ b/mesh/keyring.c
#define _GNU_SOURCE
#include <fcntl.h>
#include <dirent.h>
+#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
-#include <dirent.h>
#include <sys/stat.h>
snprintf(key_dir, PATH_MAX, "%s%s", node_path, app_key_dir);
dir = opendir(key_dir);
if (!dir) {
- l_error("Failed to App Key storage directory: %s", key_dir);
+ if (errno == ENOENT)
+ return true;
+
+ l_error("Failed to open AppKey storage directory: %s", key_dir);
return false;
}