mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-04 16:45:07 -05:00
Fixed segmentation fault in out of memory situation
This commit is contained in:
parent
d2b189e573
commit
c89fc13c80
@ -105,6 +105,7 @@ static spdylay_map_entry* insert_recur(spdylay_map_entry *entry,
|
||||
entry = spdylay_map_entry_new(key, val);
|
||||
if(entry == NULL) {
|
||||
*error = SPDYLAY_ERR_NOMEM;
|
||||
return NULL;
|
||||
}
|
||||
} else if(key == entry->key) {
|
||||
*error = SPDYLAY_ERR_INVALID_ARGUMENT;
|
||||
|
Loading…
Reference in New Issue
Block a user