fix return

This commit is contained in:
vanhauser-thc 2022-02-06 11:59:08 +01:00
parent 9ac9f7010e
commit e5996654ed

@ -259,7 +259,7 @@ int32_t add_header(ptr_header_node *ptr_head, char *header, char *value, char ty
ptr_header_node existing_hdr, new_ptr;
if (!header || !value || !strlen(header) || !strlen(value))
return;
return 0;
// get to the last header
for (cur_ptr = *ptr_head; cur_ptr && cur_ptr->next; cur_ptr = cur_ptr->next)