1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[cookies] check init_string return value

This commit is contained in:
Witold Filipczyk 2022-01-09 17:03:31 +01:00
parent fb9cc73c20
commit 41da2da52c

View File

@ -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) {