projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: statedump: invalid read during iter_end
[lttng-ust.git]
/
src
/
lib
/
lttng-ust-ctl
/
ustctl.c
diff --git
a/src/lib/lttng-ust-ctl/ustctl.c
b/src/lib/lttng-ust-ctl/ustctl.c
index 46a1c89dee6f568a21188c12c840fe79222280be..795022a15881e84a3c66c5c4f66a5ffd3e6a7da4 100644
(file)
--- a/
src/lib/lttng-ust-ctl/ustctl.c
+++ b/
src/lib/lttng-ust-ctl/ustctl.c
@@
-1,7
+1,7
@@
/*
* SPDX-License-Identifier: GPL-2.0-only
*
/*
* SPDX-License-Identifier: GPL-2.0-only
*
- * Copyright (C) 2011
Julien Desfossez <julien.desfossez@polymtl.ca>
+ * Copyright (C) 2011
EfficiOS Inc.
* Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
* Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
@@
-394,15
+394,15
@@
int lttng_ust_ctl_add_context(int sock, struct lttng_ust_context_attr *ctx,
}
ret = ustcomm_recv_app_reply(sock, &lur, lum.handle, lum.cmd);
if (ret < 0) {
}
ret = ustcomm_recv_app_reply(sock, &lur, lum.handle, lum.cmd);
if (ret < 0) {
+ if (ret == -EINVAL) {
+ /*
+ * Command unknown from remote end. The communication socket is
+ * now out-of-sync and needs to be shutdown.
+ */
+ (void) ustcomm_shutdown_unix_sock(sock);
+ }
goto end;
goto end;
- } else if (ret == -EINVAL) {
- /*
- * Command unknown from remote end. The communication socket is
- * now out-of-sync and needs to be shutdown.
- */
- (void) ustcomm_shutdown_unix_sock(sock);
}
}
-
context_data->handle = -1;
DBG("Context created successfully");
*_context_data = context_data;
context_data->handle = -1;
DBG("Context created successfully");
*_context_data = context_data;
This page took
0.024169 seconds
and
4
git commands to generate.