mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Cleanup previous commit
This commit is contained in:
parent
ad9d17d537
commit
fd93e0721b
2 changed files with 4 additions and 6 deletions
|
|
@ -671,7 +671,7 @@ int
|
|||
bdb_dn2id_add(
|
||||
BackendDB *be,
|
||||
DB_TXN *txn,
|
||||
const char *pdn,
|
||||
char *pdn,
|
||||
Entry *e )
|
||||
{
|
||||
struct bdb_info *bdb = (struct bdb_info *) be->be_private;
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ int dn_rdnlen(
|
|||
Backend *be,
|
||||
const char *dn_in )
|
||||
{
|
||||
char *dn, *s;
|
||||
char *s;
|
||||
int inquote;
|
||||
|
||||
if( dn_in == NULL ) {
|
||||
|
|
@ -392,11 +392,9 @@ int dn_rdnlen(
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
dn = dn_in;
|
||||
|
||||
inquote = 0;
|
||||
|
||||
for ( s = dn; *s; s++ ) {
|
||||
for ( s = (char *)dn_in; *s; s++ ) {
|
||||
if ( *s == '\\' ) {
|
||||
if ( *(s + 1) ) {
|
||||
s++;
|
||||
|
|
@ -416,7 +414,7 @@ int dn_rdnlen(
|
|||
}
|
||||
}
|
||||
|
||||
return( s - dn );
|
||||
return( s - dn_in );
|
||||
}
|
||||
|
||||
char * dn_rdn(
|
||||
|
|
|
|||
Loading…
Reference in a new issue