Skip to content
Snippets Groups Projects
Commit 661541fd authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix error handling

parent 053da4db
Branches
Tags
No related merge requests found
......@@ -146,6 +146,10 @@ ldap_passwd_s(
}
rc = ldap_parse_passwd( ld, res, newpasswd );
ldap_msgfree( res );
return rc;
if( rc != LDAP_SUCCESS ) {
ldap_msgfree( res );
return rc;
}
return( ldap_result2error( ld, res, 1 ) );
}
......@@ -80,6 +80,10 @@ ldap_whoami_s(
}
rc = ldap_parse_whoami( ld, res, authzid );
ldap_msgfree( res );
return rc;
if( rc != LDAP_SUCCESS ) {
ldap_msgfree( res );
return rc;
}
return( ldap_result2error( ld, res, 1 ) );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment