mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-21 20:40:10 +00:00
res_crypto: don't complain about directories
ASTERISK-30226 #close Change-Id: I5695fb0c9521f112f754b8362cff2a8f3eff05c5
This commit is contained in:
committed by
Friendly Automation
parent
0f61cc69ad
commit
fe66639492
@@ -786,6 +786,9 @@ static void crypto_load(int ifd, int ofd)
|
||||
if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) {
|
||||
continue;
|
||||
}
|
||||
if (ent->d_type == DT_DIR) {
|
||||
continue;
|
||||
}
|
||||
if (ent->d_type != DT_REG) {
|
||||
ast_log(LOG_WARNING, "Non-regular file '%s' in keys directory\n", ent->d_name);
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user