Browse Source

Merge pull request #8295 from RussWhitehead/daliCache

HPCC-14804 Clearing permissions cache causes dali to lose connection

Reviewed-By: Rodrigo Pastrana <rodrigo.pastrana@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 năm trước cách đây
mục cha
commit
dd90a14b10
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dali/base/dasess.cpp

+ 1 - 1
dali/base/dasess.cpp

@@ -1503,7 +1503,7 @@ public:
         bool ok = true;
 #else
         bool ok = true;
-        if (ldapconn->getLDAPflags() & DLF_ENABLED)
+        if (ldapconn && ldapconn->getLDAPflags() & DLF_ENABLED)
             ok = ldapconn->clearPermissionsCache(udesc);
 #endif
         return ok;