mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
RAGE: SLURPD malloc bug in st.c
This commit is contained in:
parent
1596b380e9
commit
7b115db732
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user