From 11e2ac526c1b93be870872feac68f5d0439e3eeb Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 2 Feb 2011 22:48:12 +0000 Subject: [PATCH] Fix last ldapwhoami commit. Ensure message is initialized before freeing it. --- clients/tools/ldapwhoami.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5