Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
a48beed9
Commit
a48beed9
authored
Dec 20, 2005
by
Kurt Zeilenga
Browse files
ITS#4257: fix mode parsing (again)
parent
d9087240
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
a48beed9
OpenLDAP 2.3 Change Log
OpenLDAP 2.3.14 Engineering
Fixed slapd sc_prev update after free bug (ITS#4237)
Fixed slapo-rwm static DN free bug (ITS#4248)
Fixed slapd assertion control restrictions
Fixed slapd ACL exact attrval clause needs normalization (ITS#4255)
Fixed slapd sc_prev update after free bug (ITS#4237)
Fixed slapd-bdb/hdb mode argument parsing (ITS#425h)
Fixed slapo-rwm static DN free bug (ITS#4248)
OpenLDAP 2.3.13 Release
Fixed libldap/liblutil MSG_ACCRIGHTSLEN bug (ITS#4206)
...
...
servers/slapd/config.c
View file @
a48beed9
...
...
@@ -192,7 +192,7 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
iarg
=
0
;
larg
=
0
;
barg
=
0
;
switch
(
arg_type
&
ARGS_NUMERIC
)
{
case
ARG_INT
:
if
(
lutil_atoi
(
&
iarg
,
c
->
argv
[
1
]
)
!=
0
)
{
if
(
lutil_atoi
x
(
&
iarg
,
c
->
argv
[
1
]
,
0
)
!=
0
)
{
snprintf
(
c
->
msg
,
sizeof
(
c
->
msg
),
"<%s> unable to parse
\"
%s
\"
as int"
,
c
->
argv
[
0
],
c
->
argv
[
1
]
);
...
...
@@ -202,7 +202,7 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
}
break
;
case
ARG_LONG
:
if
(
lutil_atol
(
&
larg
,
c
->
argv
[
1
]
)
!=
0
)
{
if
(
lutil_atol
x
(
&
larg
,
c
->
argv
[
1
]
,
0
)
!=
0
)
{
snprintf
(
c
->
msg
,
sizeof
(
c
->
msg
),
"<%s> unable to parse
\"
%s
\"
as long"
,
c
->
argv
[
0
],
c
->
argv
[
1
]
);
...
...
@@ -213,7 +213,7 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
break
;
case
ARG_BER_LEN_T
:
{
unsigned
long
l
;
if
(
lutil_atoul
(
&
l
,
c
->
argv
[
1
]
)
!=
0
)
{
if
(
lutil_atoul
x
(
&
l
,
c
->
argv
[
1
]
,
0
)
!=
0
)
{
snprintf
(
c
->
msg
,
sizeof
(
c
->
msg
),
"<%s> unable to parse
\"
%s
\"
as ber_len_t"
,
c
->
argv
[
0
],
c
->
argv
[
1
]
);
...
...
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