Skip to content

Commit aa931e9

Browse files
committed
apr_ldap: Avoid throwing out the error when setting APR_LDAP_OPT_URI.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x@1924560 13f79535-47bb-0310-9956-ffa450edef68
1 parent f6d5cf5 commit aa931e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ldap/apr_ldap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,10 @@ static apr_status_t option_set_uri(apr_ldap_t *ldap, const char *uri,
368368

369369
{
370370
apr_ldap_url_desc_t *urld;
371-
apu_err_t *result;
372371
apr_status_t status;
373372
int secure;
374373

375-
status = apr_ldap_url_parse(ldap->pool, uri, &(urld), &(result));
374+
status = apr_ldap_url_parse(ldap->pool, uri, &(urld), (apr_ldap_err_t *)&(err));
376375
if (status != APR_SUCCESS) {
377376
return status;
378377
}

0 commit comments

Comments
 (0)