Преглед изворни кода

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 година
родитељ
комит
dd90a14b10
1 измењених фајлова са 1 додато и 1 уклоњено
  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;