Skip to content

Commit 9724bc9

Browse files
repair: fix stem segfault
1 parent 91c4a47 commit 9724bc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/discof/repair/fd_repair_tile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ after_frag( fd_repair_tile_ctx_t * ctx,
882882

883883
if( FD_UNLIKELY( ctx->skip_frag ) ) return;
884884

885+
ctx->stem = stem;
886+
885887
uint in_kind = ctx->in_kind[ in_idx ];
886888
if( FD_UNLIKELY( in_kind==IN_KIND_CONTACT ) ) {
887889
handle_new_cluster_contact_info( ctx, ctx->buffer, sz );
@@ -1035,7 +1037,6 @@ after_frag( fd_repair_tile_ctx_t * ctx,
10351037
return;
10361038
}
10371039

1038-
ctx->stem = stem;
10391040
fd_eth_hdr_t const * eth = (fd_eth_hdr_t const *)ctx->buffer;
10401041
fd_ip4_hdr_t const * ip4 = (fd_ip4_hdr_t const *)( (ulong)eth + sizeof(fd_eth_hdr_t) );
10411042
fd_udp_hdr_t const * udp = (fd_udp_hdr_t const *)( (ulong)ip4 + FD_IP4_GET_LEN( *ip4 ) );

0 commit comments

Comments
 (0)