projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: segfault on create session with two URLs
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 1d4f9264eb0a57e4aedfa595767b1478b9402a4f..f72d4bb17a3c353a31b4f55ac49aaedc87744eef 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-1528,11
+1528,6
@@
int cmd_set_consumer_uri(int domain, struct ltt_session *session,
goto error;
}
goto error;
}
- if (!session->start_consumer) {
- ret = LTTNG_ERR_NO_CONSUMER;
- goto error;
- }
-
/*
* This case switch makes sure the domain session has a temporary consumer
* so the URL can be set.
/*
* This case switch makes sure the domain session has a temporary consumer
* so the URL can be set.
@@
-2142,11
+2137,6
@@
int cmd_enable_consumer(int domain, struct ltt_session *session)
goto error;
}
goto error;
}
- if (!session->start_consumer) {
- ret = LTTNG_ERR_NO_CONSUMER;
- goto error;
- }
-
switch (domain) {
case 0:
assert(session->consumer);
switch (domain) {
case 0:
assert(session->consumer);
@@
-2320,6
+2310,8
@@
int cmd_enable_consumer(int domain, struct ltt_session *session)
break;
}
break;
}
+ session->start_consumer = 1;
+
/* Enable it */
if (consumer) {
consumer->enabled = 1;
/* Enable it */
if (consumer) {
consumer->enabled = 1;
This page took
0.024556 seconds
and
4
git commands to generate.