mirror of
https://github.com/coturn/coturn.git
synced 2025-10-24 20:41:03 +02:00
Fix null pointer dereferenceThanks to Thomas Moeller for the report!
This commit is contained in:
parent
aab60340b2
commit
93a8c8aa78
@ -1,3 +1,7 @@
|
||||
24/06/2020 Oleg Moskalenko <mom040267@gmail.com> Mihály Mészáros <misi@majd.eu>
|
||||
Version 4.5.2 'dan Eider':
|
||||
- Fix null pointer dereference in case of out of memory. (thanks to Thomas Moeller for the report)
|
||||
|
||||
24/06/2020 Oleg Moskalenko <mom040267@gmail.com> Mihály Mészáros <misi@majd.eu>
|
||||
Version 4.5.1.3 'dan Eider':
|
||||
- merge PR #575: (by osterik)
|
||||
|
||||
@ -293,8 +293,9 @@ static stun_buffer_list_elem *new_blist_elem(ioa_engine_handle e)
|
||||
|
||||
if(!ret) {
|
||||
ret = (stun_buffer_list_elem *)malloc(sizeof(stun_buffer_list_elem));
|
||||
ret->next = NULL;
|
||||
if (!ret) {
|
||||
if (ret) {
|
||||
ret->next = NULL;
|
||||
} else {
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "%s: Cannot allocate memory for STUN buffer!\n", __FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user