Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Compare Revisions
0dae0704c01adb8b336d35647e75b45c0c21cc10...f0a6465f2369696f02dbf2453a6a50089b1558a5
Commits (3)
ITS
#9802
slapd-meta: fix rewrite config SEGV
· d878ebc3
Howard Chu
authored
Mar 15, 2022
and
Quanah Gibson-Mount
committed
Mar 21, 2022
d878ebc3
ITS
#9802
slapd-meta: fix rewrite config ordering
· e9b11154
Howard Chu
authored
Mar 15, 2022
and
Quanah Gibson-Mount
committed
Mar 21, 2022
e9b11154
ITS
#9802
slapd-ldap/meta/async-meta: plug memleak in keepalive config
· f0a6465f
Howard Chu
authored
Mar 21, 2022
and
Quanah Gibson-Mount
committed
Mar 21, 2022
f0a6465f
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-asyncmeta/config.c
View file @
f0a6465f
...
...
@@ -2498,9 +2498,11 @@ asyncmeta_back_cf_gen( ConfigArgs *c )
break
;
#endif
/* SLAPD_META_CLIENT_PR */
case
LDAP_BACK_CFG_KEEPALIVE
:
slap_keepalive_parse
(
ber_bvstrdup
(
c
->
argv
[
1
]),
&
mt
->
mt_tls
.
sb_keepalive
,
0
,
0
,
0
);
case
LDAP_BACK_CFG_KEEPALIVE
:
{
struct
berval
bv
;
ber_str2bv
(
c
->
argv
[
1
],
0
,
1
,
&
bv
);
slap_keepalive_parse
(
&
bv
,
&
mt
->
mt_tls
.
sb_keepalive
,
0
,
0
,
0
);
}
break
;
case
LDAP_BACK_CFG_TCP_USER_TIMEOUT
:
...
...
servers/slapd/back-ldap/config.c
View file @
f0a6465f
...
...
@@ -2051,9 +2051,11 @@ done_url:;
}
break
;
case
LDAP_BACK_CFG_KEEPALIVE
:
slap_keepalive_parse
(
ber_bvstrdup
(
c
->
argv
[
1
]),
&
li
->
li_tls
.
sb_keepalive
,
0
,
0
,
0
);
case
LDAP_BACK_CFG_KEEPALIVE
:
{
struct
berval
bv
;
ber_str2bv
(
c
->
argv
[
1
],
0
,
1
,
&
bv
);
slap_keepalive_parse
(
&
bv
,
&
li
->
li_tls
.
sb_keepalive
,
0
,
0
,
0
);
}
break
;
case
LDAP_BACK_CFG_TCP_USER_TIMEOUT
:
...
...
servers/slapd/back-meta/config.c
View file @
f0a6465f
...
...
@@ -2662,9 +2662,9 @@ idassert-authzFrom "dn:<rootdn>"
c
->
fname
,
c
->
lineno
,
ca
.
argc
,
ca
.
argv
);
}
assert
(
rc
==
0
);
ch_free
(
ca
.
argv
);
ch_free
(
ca
.
tline
);
}
ch_free
(
ca
.
argv
);
}
argc
=
c
->
argc
;
argv
=
c
->
argv
;
...
...
@@ -2699,9 +2699,9 @@ idassert-authzFrom "dn:<rootdn>"
c
->
fname
,
c
->
lineno
,
ca
.
argc
,
argv
);
}
assert
(
rc
==
0
);
ch_free
(
ca
.
argv
);
ch_free
(
ca
.
tline
);
}
ch_free
(
ca
.
argv
);
}
/* save the rule info */
...
...
@@ -2718,7 +2718,7 @@ idassert-authzFrom "dn:<rootdn>"
/* move it to the right slot */
if
(
ix
<
cnt
)
{
for
(
i
=
cnt
;
i
>
ix
;
i
--
)
mt
->
mt_rwmap
.
rwm_bva_rewrite
[
i
+
1
]
=
mt
->
mt_rwmap
.
rwm_bva_rewrite
[
i
];
mt
->
mt_rwmap
.
rwm_bva_rewrite
[
i
]
=
mt
->
mt_rwmap
.
rwm_bva_rewrite
[
i
-
1
];
mt
->
mt_rwmap
.
rwm_bva_rewrite
[
i
]
=
bv
;
/* destroy old rules */
...
...
@@ -2913,9 +2913,11 @@ map_fail:;
break
;
#endif
/* SLAPD_META_CLIENT_PR */
case
LDAP_BACK_CFG_KEEPALIVE
:
slap_keepalive_parse
(
ber_bvstrdup
(
c
->
argv
[
1
]),
&
mt
->
mt_tls
.
sb_keepalive
,
0
,
0
,
0
);
case
LDAP_BACK_CFG_KEEPALIVE
:
{
struct
berval
bv
;
ber_str2bv
(
c
->
argv
[
1
],
0
,
1
,
&
bv
);
slap_keepalive_parse
(
&
bv
,
&
mt
->
mt_tls
.
sb_keepalive
,
0
,
0
,
0
);
}
break
;
case
LDAP_BACK_CFG_TCP_USER_TIMEOUT
:
...
...