Skip to content

Commit

Permalink
AER-6786 - non-CDT as_val types can legitimately have a zero packed r…
Browse files Browse the repository at this point in the history
…esponse size.
  • Loading branch information
gooding470 committed Dec 27, 2024
1 parent 5834a04 commit 6332206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion as/src/query/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ aggr_query_add_val_response(aggr_query_slice* slice, const as_val* val,
uint32_t size = as_particle_asval_client_value_size(val);
cf_buf_builder* bb = *slice->bb_r;

if (size == 0 ||
if ((size == 0 && (val->type == AS_LIST || val->type == AS_MAP)) ||
// 7 is name length of SUCCESS or FAILURE bin. TODO - clean up.
size + sizeof(as_msg) + sizeof(as_msg_op) + 7 + bb->used_sz >
PROTO_SIZE_MAX) {
Expand Down

0 comments on commit 6332206

Please sign in to comment.