From: Hallvard Furuseth Date: Wed, 2 Feb 2011 22:48:12 +0000 (+0000) Subject: Fix last ldapwhoami commit. X-Git-Tag: MIGRATION_CVS2GIT~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e2ac526c1b93be870872feac68f5d0439e3eeb;p=thirdparty%2Fopenldap.git Fix last ldapwhoami commit. Ensure message is initialized before freeing it. --- diff --git a/clients/tools/ldapwhoami.c b/clients/tools/ldapwhoami.c index 12be137f4b..e6c2a237eb 100644 --- a/clients/tools/ldapwhoami.c +++ b/clients/tools/ldapwhoami.c @@ -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 );