X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ring-buffer-client.h;h=7078938dbeb16b78326bef9a587d828072f15163;hb=3e1db88df7cc11a1340fc2ce3ef8a1124fd350a3;hp=ab472352f96898625db0662b9399e5762088d897;hpb=0f029713c868ef3e868d0dc7297455cb737e606f;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index ab472352..7078938d 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -607,6 +607,8 @@ static int client_sequence_number(struct lttng_ust_lib_ring_buffer *buf, struct packet_header *header; header = client_packet_header(buf, handle); + if (!header) + return -1; *seq = header->ctx.packet_seq_num; return 0; }