From 739a93c79685bd9d9bd34bdb6f7a12089fa91256 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 18 Dec 2014 13:01:03 -0500 Subject: [PATCH] Fix: Only allow setting a stream class when not frozen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/stream-class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/ctf/ir/stream-class.c b/formats/ctf/ir/stream-class.c index 6f1ec13e..058f4b29 100644 --- a/formats/ctf/ir/stream-class.c +++ b/formats/ctf/ir/stream-class.c @@ -151,7 +151,7 @@ int bt_ctf_stream_class_set_id(struct bt_ctf_stream_class *stream_class, { int ret = 0; - if (!stream_class) { + if (!stream_class || stream_class->frozen) { ret = -1; goto end; } -- 2.34.1