mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[cookies] check init_string return value
This commit is contained in:
parent
fb9cc73c20
commit
41da2da52c
@ -624,7 +624,10 @@ send_cookies_common(struct uri *uri, unsigned int httponly)
|
||||
|
||||
if (!path) return NULL;
|
||||
|
||||
init_string(&header);
|
||||
if (!init_string(&header)) {
|
||||
mem_free(path);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
now = time(NULL);
|
||||
foreachsafe (c, next, cookies) {
|
||||
|
Loading…
Reference in New Issue
Block a user