Commit 1901f85d authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6344

parent a849f91f
OpenLDAP 2.4 Change Log
OpenLDAP 2.4.20 Engineering
Fixed liblber to return failure on certain failures (ITS#6344)
Fixed libldap uninitialized return value (ITS#6355)
Fixed liblutil constant (ITS#5909)
Added slapd handling of hex server IDs (ITS#6297)
......
......@@ -151,6 +151,7 @@ ber_encode_oid( BerValue *in, BerValue *out )
der[j] = tmp;
}
der += len;
if ( ptr == inend )
break;
......@@ -242,10 +243,10 @@ ber_put_ostring(
rc = ber_write( ber, (char *) ptr, &header[sizeof(header)] - ptr, 0 );
if ( rc >= 0 && ber_write( ber, str, len, 0 ) >= 0 ) {
/* length(tag + length + contents) */
rc += (int) len;
return rc + (int) len;
}
return rc;
return -1;
}
int
......@@ -300,10 +301,10 @@ ber_put_bitstring(
rc = ber_write( ber, (char *) ptr, &header[sizeof(header)] - ptr, 0 );
if ( rc >= 0 && ber_write( ber, str, len, 0 ) >= 0 ) {
/* length(tag + length + unused bit count + bitstring) */
rc += (int) len;
return rc + (int) len;
}
return rc;
return -1;
}
int
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment