Skip to content

Commit

Permalink
session.c: send_rpc_value: fix list serialization.
Browse files Browse the repository at this point in the history
whitequark committed Aug 9, 2015
1 parent dfc91a3 commit b99eae6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions soc/runtime/session.c
Original file line number Diff line number Diff line change
@@ -771,13 +771,12 @@ static int send_rpc_value(const char **tag, void **value)
if(!out_packet_int32(list->length))
return 0;

const char *tag_copy = *tag;
for(int i = 0; i < list->length; i++) {
const char *tag_copy = *tag;
if(!send_rpc_value(&tag_copy, &element))
return 0;
tag_copy = *tag;
}
*tag = tag_copy;
skip_rpc_value(tag);

*value = (void*)((intptr_t)(*value) + sizeof(*list));
break;

0 comments on commit b99eae6

Please sign in to comment.