X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fschema_init.c;h=24c9933eb520b89233c1401a51538dd694a6a453;hb=f30269f5d2e4bb5ee7486fe6542078d1b59dba6d;hp=ca508cfdfe08b90d5006751de6fb686d0a60e5a2;hpb=d68ba23ab87ee5f6f8af2f855f9caa29480c1cf7;p=openldap diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index ca508cfdfe..24c9933eb5 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2008 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -4363,8 +4363,8 @@ serialNumberAndIssuerSerialCheck( ber_dupbv_x( &ni, is, ctx ); } else { - ber_int_t src, dst; - + ber_len_t src, dst; + ni.bv_len = is->bv_len - numdquotes; ni.bv_val = ber_memalloc_x( ni.bv_len + 1, ctx ); for ( src = 0, dst = 0; src < is->bv_len; src++, dst++ ) {