projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: relayd: Dereference before null check
[lttng-tools.git]
/
src
/
common
/
relayd
/
relayd.c
diff --git
a/src/common/relayd/relayd.c
b/src/common/relayd/relayd.c
index 1ba0ccf99bdcb9586f8299e3295d43c3f75af13c..12f70f7e0bf8ad39dbcb5489b84fa953e3626bda 100644
(file)
--- a/
src/common/relayd/relayd.c
+++ b/
src/common/relayd/relayd.c
@@
-191,7
+191,7
@@
static int relayd_create_session_2_11(struct lttcomm_relayd_sock *rsock,
goto error;
}
dst += hostname_len;
- if (
base_path &&
lttng_strncpy(dst, base_path, base_path_len)) {
+ if (lttng_strncpy(dst, base_path, base_path_len)) {
ret = -1;
goto error;
}
This page took
0.024921 seconds
and
4
git commands to generate.