mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +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;
|
||||
}
|
||||
|
||||
if ( *s == '\0' ) {
|
||||
new->bv_val = NULL;
|
||||
new->bv_len = 0;
|
||||
return new;
|
||||
}
|
||||
|
||||
new->bv_val = (char *) s;
|
||||
new->bv_len = strlen( s );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user