Fix: client_sequence_number may dereference NULL pointer
[lttng-ust.git] / liblttng-ust / lttng-ring-buffer-client.h
index a261dcfe02e01cf0eba9d69626cdc83270078d10..f02d2808d458b0908b42289dabdbca4c877ed122 100644 (file)
@@ -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;
 }
This page took 0.023673 seconds and 4 git commands to generate.