digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
for( i=0; values[i] != NULL; i++ ) {
/* just count them */
}
- assert( i > 0 );
-
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
slen = strlen( syntax->ssyn_oid );
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
for( i=0; values[i] != NULL; i++ ) {
/* just count them */
}
- assert( i > 0 );
-
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
slen = strlen( syntax->ssyn_oid );
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
/* count number of indices to generate */
}
}
}
- assert( i > 0 );
if( nkeys == 0 ) {
/* no keys to generate */
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
for( i=0; values[i] != NULL; i++ ) {
/* just count them */
}
- assert( i > 0 );
-
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
slen = strlen( syntax->ssyn_oid );
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
/* count number of indices to generate */
}
}
}
- assert( i > 0 );
if( nkeys == 0 ) {
/* no keys to generate */
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
for( i=0; values[i] != NULL; i++ ) {
/* just count them */
}
- assert( i > 0 );
-
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
slen = strlen( syntax->ssyn_oid );
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
/* count number of indices to generate */
}
}
}
- assert( i > 0 );
if( nkeys == 0 ) {
/* no keys to generate */
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
for( i=0; values[i] != NULL; i++ ) {
/* just count them */
}
- assert( i > 0 );
-
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
slen = strlen( syntax->ssyn_oid );
digest.bv_val = MD5digest;
digest.bv_len = sizeof(MD5digest);
+ /* we should have at least one value at this point */
+ assert( values != NULL && values[0] != NULL );
+
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
/* count number of indices to generate */
}
}
}
- assert( i > 0 );
if( nkeys == 0 ) {
/* no keys to generate */