mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
cleanup error codes
This commit is contained in:
parent
0b9cc398e2
commit
30fed3f1c9
@ -930,7 +930,7 @@ ldap_url_parselist_ext (LDAPURLDesc **ludlist, const char *url, const char *sep
|
||||
|
||||
urls = ldap_str2charray(url, sep);
|
||||
if (urls == NULL)
|
||||
return LDAP_NO_MEMORY;
|
||||
return LDAP_URL_ERR_MEM;
|
||||
|
||||
/* count the URLs... */
|
||||
for (i = 0; urls[i] != NULL; i++) ;
|
||||
@ -947,7 +947,7 @@ ldap_url_parselist_ext (LDAPURLDesc **ludlist, const char *url, const char *sep
|
||||
*ludlist = ludp;
|
||||
}
|
||||
ldap_charray_free(urls);
|
||||
return LDAP_SUCCESS;
|
||||
return LDAP_URL_SUCCESS;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user