1
0
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:
Tatsuhiro Tsujikawa 2012-04-06 23:35:30 +09:00
parent d2b189e573
commit c89fc13c80

View File

@ -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;