]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/entry.c
implement search timeout when the remote server does not respond in the specified...
[openldap] / servers / slapd / entry.c
index 220d7a22f57bb0777d586fbeb457e23404bd246c..ca2296fee647ec0a99758ba07631d21fe0a8c777 100644 (file)
@@ -500,10 +500,12 @@ entry_prealloc( int num )
 
        if (!num) return 0;
 
+#if STRIDE_FACTOR > 1
        /* Round up to our stride factor */
        num += STRIDE_FACTOR-1;
        num /= STRIDE_FACTOR;
        num *= STRIDE_FACTOR;
+#endif
 
        s = ch_calloc( 1, sizeof(slap_list) + num * sizeof(Entry));
        s->next = entry_chunks;