mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ber_bvstr() shouldn't play games with input string.
This commit is contained in:
parent
2ae410bd1b
commit
ce856bd5c2
@ -498,12 +498,6 @@ ber_bvstr(
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( *s == '\0' ) {
|
|
||||||
new->bv_val = NULL;
|
|
||||||
new->bv_len = 0;
|
|
||||||
return new;
|
|
||||||
}
|
|
||||||
|
|
||||||
new->bv_val = (char *) s;
|
new->bv_val = (char *) s;
|
||||||
new->bv_len = strlen( s );
|
new->bv_len = strlen( s );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user