Bläddra i källkod

HPCC-12488 LDAP Security core if reference uninitialized member

If the CLDAPGetValuesLenWrapper class gets constructed via the ctor that
accepts arguments, bvalues does not get initialized and can core later when
calling getValues. This fix initializes that member in both constructors.

Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>
William Whitehead 10 år sedan
förälder
incheckning
1ab7dc538e
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      system/security/LdapSecurity/ldapconnection.cpp

+ 1 - 0
system/security/LdapSecurity/ldapconnection.cpp

@@ -943,6 +943,7 @@ public:
     }
     CLDAPGetValuesLenWrapper(LDAP *ld, LDAPMessage *msg, const char * attr)
     {
+        bvalues = NULL;
         getValues(ld,msg,attr);
     }