Skip to content

Commit dc9558f

Browse files
committed
Fix ignored tfw_msg_write() error
1 parent 3b930c1 commit dc9558f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tempesta_fw/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ tfw_http_prep_redirect(TfwHttpMsg *resp, unsigned short status, TfwStr *rmark,
438438
tfw_http_prep_date(__TFW_STR_CH(&h_common_1, 1)->data);
439439

440440
ret = tfw_msg_write(&it, rh);
441-
ret = tfw_msg_write(&it, &h_common_1);
441+
ret |= tfw_msg_write(&it, &h_common_1);
442442
/*
443443
* HTTP/1.0 may have no host part, so we create relative URI.
444444
* See RFC 1945 9.3 and RFC 7231 7.1.2.

0 commit comments

Comments
 (0)