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
f8b92e8e
Commit
f8b92e8e
authored
Feb 21, 2020
by
Quanah Gibson-Mount
Browse files
ITS#9175 - Fix argument cast
Fixes potential segfault in ldapsearch
parent
ef537fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/getattr.c
View file @
f8b92e8e
...
...
@@ -147,7 +147,7 @@ ldap_get_attribute_ber( LDAP *ld, LDAPMessage *entry, BerElement *ber,
/* skip sequence, snarf attribute type */
tag
=
ber_scanf
(
ber
,
vals
?
"{mM}"
:
"{mx}"
,
attr
,
vals
,
&
siz
,
0
);
&
siz
,
(
ber_len_t
)
0
);
if
(
tag
==
LBER_ERROR
)
{
rc
=
ld
->
ld_errno
=
LDAP_DECODING_ERROR
;
}
...
...
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