Commit 00c645b9 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#133

parent 6e4655a6
......@@ -536,15 +536,20 @@ get_lenbyte:
ber->ber_rwptr += res;
/* convert length. */
ber->ber_len = 0;
for( to_go = 0; to_go < res ; to_go++ ) {
ber->ber_len <<= 8;
ber->ber_len |= netlen[to_go];
}
if (PTR_IN_VAR(ber->ber_rwptr, ber->ber_len))
return LBER_DEFAULT;
}
fill_buffer:
/* now fill the buffer. */
if (ber->ber_len==0) {
errno = ERANGE;
return LBER_DEFAULT;
}
if (ber->ber_buf==NULL) {
ber->ber_buf = (char *) LBER_MALLOC( ber->ber_len );
if (ber->ber_buf==NULL) {
......
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