fix prev commit

This commit is contained in:
Kurt Zeilenga 2006-03-06 22:32:11 +00:00
parent d787d7692e
commit cafc204a13

View File

@ -1139,7 +1139,7 @@ static int process_response(
const char *dn ) const char *dn )
{ {
LDAPMessage *res; LDAPMessage *res;
int rc = LDAP_OTHER; int rc = LDAP_OTHER, msgtype;
struct timeval tv = { 0, 0 }; struct timeval tv = { 0, 0 };
int err; int err;
char *text = NULL, *matched = NULL, **refs = NULL; char *text = NULL, *matched = NULL, **refs = NULL;
@ -1164,6 +1164,8 @@ static int process_response(
} }
} }
msgtype = ldap_msgtype( res );
rc = ldap_parse_result( ld, res, &err, &matched, &text, &refs, &ctrls, 1 ); rc = ldap_parse_result( ld, res, &err, &matched, &text, &refs, &ctrls, 1 );
if ( rc == LDAP_SUCCESS ) rc = err; if ( rc == LDAP_SUCCESS ) rc = err;