Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
67670f45
Commit
67670f45
authored
Nov 02, 2020
by
Howard Chu
Committed by
Quanah Gibson-Mount
Nov 02, 2020
Browse files
ITS
#9383
remove assert in certificateListValidate
parent
bdb0d459
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
67670f45
...
...
@@ -371,8 +371,7 @@ certificateListValidate( Syntax *syntax, struct berval *in )
/* Optional version */
if
(
tag
==
LBER_INTEGER
)
{
tag
=
ber_get_int
(
ber
,
&
version
);
assert
(
tag
==
LBER_INTEGER
);
if
(
version
!=
SLAP_X509_V2
)
return
LDAP_INVALID_SYNTAX
;
if
(
tag
!=
LBER_INTEGER
||
version
!=
SLAP_X509_V2
)
return
LDAP_INVALID_SYNTAX
;
}
tag
=
ber_skip_tag
(
ber
,
&
len
);
/* Signature Algorithm */
if
(
tag
!=
LBER_SEQUENCE
)
return
LDAP_INVALID_SYNTAX
;
...
...
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