]> git.sur5r.net Git - openldap/commitdiff
RAGE: SLURPD malloc bug in st.c
authorKurt Zeilenga <kurt@openldap.org>
Sun, 9 Aug 1998 04:52:36 +0000 (04:52 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 9 Aug 1998 04:52:36 +0000 (04:52 +0000)
servers/slurpd/st.c

index 610b29585342e2b4205d82ed080288b4448f2934..e66a28ba1c9a776ecb7c7af2146bd402575a2234 100644 (file)
@@ -56,8 +56,7 @@ St_add(
        pthread_mutex_unlock( &(st->st_mutex ));
        return NULL;
     }
-    st->st_data[ ind ]  = ( Stel * ) ch_malloc( st->st_data,
-           sizeof( Stel ));
+    st->st_data[ ind ]  = ( Stel * ) ch_malloc( sizeof( Stel ) );
     if ( st->st_data[ ind ] == NULL ) {
        pthread_mutex_unlock( &(st->st_mutex ));
        return NULL;