Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
731d484f
Commit
731d484f
authored
Dec 07, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jan 07, 2014
Browse files
ITS#7759 avoid assert in parse_passwdpolicy_control
parent
503561bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/ppolicy.c
View file @
731d484f
...
...
@@ -134,6 +134,11 @@ ldap_parse_passwordpolicy_control(
assert
(
LDAP_VALID
(
ld
)
);
assert
(
ctrl
!=
NULL
);
if
(
!
ctrl
->
ldctl_value
.
bv_val
)
{
ld
->
ld_errno
=
LDAP_DECODING_ERROR
;
return
(
ld
->
ld_errno
);
}
/* Create a BerElement from the berval returned in the control. */
ber
=
ber_init
(
&
ctrl
->
ldctl_value
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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