Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
openldap2-client.33990
0207-ITS-9383-remove-assert-in-certificateListV...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0207-ITS-9383-remove-assert-in-certificateListValidate.patch of Package openldap2-client.33990
From eb8e81599cd35d3e699101ede376cdb0f9a59af0 Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@openldap.org> Date: Mon, 2 Nov 2020 13:12:10 +0000 Subject: [PATCH 1/2] ITS#9383 remove assert in certificateListValidate --- servers/slapd/schema_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index c865d1ff0..06f3c0902 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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; -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor