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
c8b5c691
Commit
c8b5c691
authored
Apr 14, 2020
by
grapvar
Committed by
Quanah Gibson-Mount
Apr 15, 2020
Browse files
ITS#9214 slapd-mdb: plug cursor leak in dnSuperiorMatch filter
parent
7631dcea
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/dn2id.c
View file @
c8b5c691
...
...
@@ -485,10 +485,8 @@ mdb_dn2sups(
data
.
mv_data
=
d
;
rc
=
mdb_cursor_get
(
cursor
,
&
key
,
&
data
,
MDB_GET_BOTH
);
op
->
o_tmpfree
(
d
,
op
->
o_tmpmemctx
);
if
(
rc
)
{
mdb_cursor_close
(
cursor
);
if
(
rc
)
break
;
}
ptr
=
(
char
*
)
data
.
mv_data
+
data
.
mv_size
-
2
*
sizeof
(
ID
);
memcpy
(
&
nid
,
ptr
,
sizeof
(
ID
));
...
...
@@ -507,7 +505,7 @@ mdb_dn2sups(
break
;
}
}
mdb_cursor_close
(
cursor
);
done:
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"<= mdb_dn2sups: get failed: %s (%d)
\n
"
,
...
...
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