Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
1901f85d
Commit
1901f85d
authored
Oct 31, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6344
parent
a849f91f
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
1901f85d
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)
...
...
libraries/liblber/encode.c
View file @
1901f85d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment