Fix last ldapwhoami commit.

Ensure message is initialized before freeing it.
This commit is contained in:
Hallvard Furuseth 2011-02-02 22:48:12 +00:00
parent e74964d51b
commit 11e2ac526c

View 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 );