From 48eab7935c62158c578ca4e00fd39660749fc59d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 15 Sep 2021 15:31:20 -0700 Subject: [PATCH] sftp: add missing safe() --- src/ldap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldap.js b/src/ldap.js index f088b2263..249ec3983 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -552,7 +552,7 @@ async function authenticateSftp(req, res, next) { } async function loadSftpConfig(req, res, next) { - const [error, servicesConfig] = await settings.getServicesConfig(); + const [error, servicesConfig] = await safe(settings.getServicesConfig()); if (error) return next(new ldap.OperationsError(error.toString())); const sftpConfig = servicesConfig['sftp'] || {};