]> git.sur5r.net Git - openldap/commitdiff
Fix last ldapwhoami commit.
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 2 Feb 2011 22:48:12 +0000 (22:48 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 2 Feb 2011 22:48:12 +0000 (22:48 +0000)
Ensure message is initialized before freeing it.

clients/tools/ldapwhoami.c

index 12be137f4ba2f6469e1d30a1972879347b30604d..e6c2a237ebc7a7658ce548e5ef3901f8cd11427e 100644 (file)
@@ -113,7 +113,7 @@ main( int argc, char *argv[] )
        char            *matcheddn = NULL, *text = NULL, **refs = NULL;
        struct berval   *authzid = NULL;
        int             id, code = 0;
-       LDAPMessage     *res;
+       LDAPMessage     *res = NULL;
        LDAPControl     **ctrls = NULL;
 
        tool_init( TOOL_WHOAMI );