Skip to content
Snippets Groups Projects
Commit 9872d677 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Re-fix ITS#6764 (check for ber == NULL _before_ using ber)

parent 1a26c4d0
No related branches found
No related tags found
No related merge requests found
......@@ -390,16 +390,15 @@ int ber_flatten2(
return -1;
}
/* unmatched "{" and "}" */
if ( ber->ber_sos_ptr != NULL ) {
return -1;
}
if ( ber == NULL ) {
/* ber is null, create an empty berval */
bv->bv_val = NULL;
bv->bv_len = 0;
} else if ( ber->ber_sos_ptr != NULL ) {
/* unmatched "{" and "}" */
return -1;
} else {
/* copy the berval */
ber_len_t len = ber_pvt_ber_write( ber );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment