projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: partial recv lead to client disconnect
[lttng-tools.git]
/
src
/
common
/
tracker.c
diff --git
a/src/common/tracker.c
b/src/common/tracker.c
index c27d9765562e590241e2ae9ba5ece15e8bbdc1a0..29249d528bc8da1f1a7b71e00381cc24b65d1678 100644
(file)
--- a/
src/common/tracker.c
+++ b/
src/common/tracker.c
@@
-85,6
+85,7
@@
enum lttng_error_code process_attr_value_from_comm(
name = strdup(value_view->data);
if (!name) {
ret = LTTNG_ERR_NOMEM;
name = strdup(value_view->data);
if (!name) {
ret = LTTNG_ERR_NOMEM;
+ goto error;
}
}
}
}
@@
-102,10
+103,12
@@
enum lttng_error_code process_attr_value_from_comm(
}
/* Only expect a payload for name value types. */
}
/* Only expect a payload for name value types. */
- if (is_value_type_name(value_type) && value_view->size == 0) {
+ if (is_value_type_name(value_type) &&
+ (!value_view || value_view->size == 0)) {
ret = LTTNG_ERR_INVALID_PROTOCOL;
goto error;
ret = LTTNG_ERR_INVALID_PROTOCOL;
goto error;
- } else if (!is_value_type_name(value_type) && value_view->size != 0) {
+ } else if (!is_value_type_name(value_type) && value_view &&
+ value_view->size != 0) {
ret = LTTNG_ERR_INVALID_PROTOCOL;
goto error;
}
ret = LTTNG_ERR_INVALID_PROTOCOL;
goto error;
}
This page took
0.038952 seconds
and
4
git commands to generate.