mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
RAGE: SLURPD malloc bug in st.c
This commit is contained in:
parent
1596b380e9
commit
7b115db732
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue