projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Unchecked session pointer when destroying a connection in relayd
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
main.c
diff --git
a/src/bin/lttng-relayd/main.c
b/src/bin/lttng-relayd/main.c
index 53eaca2cbf944327b95aa0fced58bb564bb8013f..a93151ac47f560875f07c9cbf113225f9dd892cc 100644
(file)
--- a/
src/bin/lttng-relayd/main.c
+++ b/
src/bin/lttng-relayd/main.c
@@
-2389,7
+2389,7
@@
static void destroy_connection(struct lttng_ht *relay_connections_ht,
connection_delete(relay_connections_ht, conn);
/* For the control socket, we try to destroy the session. */
connection_delete(relay_connections_ht, conn);
/* For the control socket, we try to destroy the session. */
- if (conn->type == RELAY_CONTROL) {
+ if (conn->type == RELAY_CONTROL
&& conn->session
) {
destroy_session(conn->session, conn->sessions_ht);
}
destroy_session(conn->session, conn->sessions_ht);
}
This page took
0.022966 seconds
and
4
git commands to generate.