mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-24 07:43:16 -05:00
ber_bvstr() shouldn't play games with input string.
This commit is contained in:
parent
2ae410bd1b
commit
ce856bd5c2
1 changed files with 0 additions and 6 deletions
|
|
@ -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 a new issue