mirror of
https://github.com/coturn/coturn.git
synced 2025-10-25 13:00:59 +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>
|
24/06/2020 Oleg Moskalenko <mom040267@gmail.com> Mihály Mészáros <misi@majd.eu>
|
||||||
Version 4.5.1.3 'dan Eider':
|
Version 4.5.1.3 'dan Eider':
|
||||||
- merge PR #575: (by osterik)
|
- merge PR #575: (by osterik)
|
||||||
|
|||||||
@ -293,8 +293,9 @@ static stun_buffer_list_elem *new_blist_elem(ioa_engine_handle e)
|
|||||||
|
|
||||||
if(!ret) {
|
if(!ret) {
|
||||||
ret = (stun_buffer_list_elem *)malloc(sizeof(stun_buffer_list_elem));
|
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__);
|
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