Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
openldap2.24984
0026-bsc1170715-Fix-copy-paste-error-in-prev-co...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0026-bsc1170715-Fix-copy-paste-error-in-prev-commit.patch of Package openldap2.24984
From b0950f4d44cf26b8fcfa7ba76acf1ce954f8a9bd Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@openldap.org> Date: Fri, 14 Aug 2015 15:33:32 +0100 Subject: [PATCH] Fix copy/paste error in prev commit --- servers/slapd/overlays/ppolicy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 51343fcdb..908388729 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1027,8 +1027,8 @@ ppolicy_bind_response( Operation *op, SlapReply *rs ) nv = m->sml_nvalues[0]; ch_free(m->sml_values); ch_free(m->sml_nvalues); - m->sml_values = ch_calloc( sizeof(struct berval), 2 ); - m->sml_nvalues = ch_calloc( sizeof(struct berval), 2 ); + m->sml_values = ch_calloc( sizeof(struct berval), ppb->pp.pwdMaxRecordedFailure+1 ); + m->sml_nvalues = ch_calloc( sizeof(struct berval), ppb->pp.pwdMaxRecordedFailure+1 ); for (i=0; i<j; i++) { ber_dupbv(&m->sml_values[i], &a->a_vals[a->a_numvals-j+i]); ber_dupbv(&m->sml_nvalues[i], &a->a_nvals[a->a_numvals-j+i]); @@ -1042,8 +1042,8 @@ ppolicy_bind_response( Operation *op, SlapReply *rs ) m->sml_type = ad_pwdFailureTime->ad_cname; m->sml_desc = ad_pwdFailureTime; m->sml_numvals = a->a_numvals - j; - m->sml_values = ch_calloc( sizeof(struct berval), m->sml_numvals ); - m->sml_nvalues = ch_calloc( sizeof(struct berval), m->sml_numvals ); + m->sml_values = ch_calloc( sizeof(struct berval), m->sml_numvals+1 ); + m->sml_nvalues = ch_calloc( sizeof(struct berval), m->sml_numvals+1 ); for (i=0; i<m->sml_numvals; i++) { ber_dupbv(&m->sml_values[i], &a->a_vals[i]); ber_dupbv(&m->sml_nvalues[i], &a->a_nvals[i]); -- 2.16.4
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