X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=liblttng-ust%2Flttng-ring-buffer-client.h;h=b5eb692f7574db223ef2b06e3047277dd56274ce;hb=d78ca4883670ce4255ab9f99a735828b0e9e1ed1;hp=55209f45236db21b3700f8ddac0179430780eec8;hpb=3e2aaf78e6f8d57c7dbc42e39764862ba8c64bd7;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index 55209f45..b5eb692f 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -583,6 +583,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; }