From: Kurt Zeilenga Date: Sun, 9 Aug 1998 04:52:36 +0000 (+0000) Subject: RAGE: SLURPD malloc bug in st.c X-Git-Tag: LDAP_3_3+prerelease~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b115db7321e1464e2eefa5392cfaf6e010db652;p=openldap RAGE: SLURPD malloc bug in st.c --- diff --git a/servers/slurpd/st.c b/servers/slurpd/st.c index 610b295853..e66a28ba1c 100644 --- a/servers/slurpd/st.c +++ b/servers/slurpd/st.c @@ -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;