From: Jérémie Galarneau Date: Thu, 18 Dec 2014 18:01:03 +0000 (-0500) Subject: Fix: Only allow setting a stream class when not frozen X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=739a93c79685bd9d9bd34bdb6f7a12089fa91256;p=deliverable%2Fbabeltrace.git Fix: Only allow setting a stream class when not frozen Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/stream-class.c b/formats/ctf/ir/stream-class.c index 6f1ec13e0..058f4b29e 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; }