Skip to content

Commit 5108444

Browse files
authored
Fix buffer overflow in b2b_logic
1 parent 6c0b37f commit 5108444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/b2b_logic/logic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ str *b2b_scenario_hdrs(struct b2bl_new_entity *entity)
26842684
continue;
26852685
}
26862686
b2b_hdrs_buf.s = tmp_buf;
2687-
b2b_hdrs_buf_len += len;
2687+
b2b_hdrs_buf_len = b2b_hdrs_buf.len + len;
26882688
}
26892689
memcpy(b2b_hdrs_buf.s + b2b_hdrs_buf.len, name_value.s.s, name_value.s.len);
26902690
b2b_hdrs_buf.len += name_value.s.len;

0 commit comments

Comments
 (0)