diff --git a/src/os_crypto/shared/keys.c b/src/os_crypto/shared/keys.c index f7995fc4f..5478b6657 100644 --- a/src/os_crypto/shared/keys.c +++ b/src/os_crypto/shared/keys.c @@ -250,8 +250,8 @@ void OS_ReadKeys(keystore *keys) /* Clear one last time before leaving */ __memclear(id, name, ip, key, KEYSIZE + 1); - /* Check if there are any agents available */ - if (keys->keysize == 0) { + /* Check if there are any keys available, except on remoted */ + if (keys->keysize == 0 && strcmp(__local_name, "ossec-remoted") != 0) { ErrorExit(NO_REM_CONN, __local_name); }