projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng-ctl: Add error query interface
[lttng-tools.git]
/
src
/
common
/
unix.c
diff --git
a/src/common/unix.c
b/src/common/unix.c
index 50200242529992ce4b8244d4c4d897a28d35583d..0e6c329c072c385da4e25836290f60f436ca69e5 100644
(file)
--- a/
src/common/unix.c
+++ b/
src/common/unix.c
@@
-15,9
+15,9
@@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <errno.h>
#include <common/common.h>
#include <common/common.h>
+#include <common/compat/errno.h>
#include <common/sessiond-comm/sessiond-comm.h>
#include <common/fd-handle.h>
#include <common/sessiond-comm/sessiond-comm.h>
#include <common/fd-handle.h>
@@
-453,6
+453,11
@@
ssize_t _lttcomm_send_payload_view_fds_unix_sock(int sock,
lttng_dynamic_array_init(&raw_fds, sizeof(int), NULL);
lttng_dynamic_array_init(&raw_fds, sizeof(int), NULL);
+ if (fd_count < 0) {
+ ret = -LTTNG_ERR_INVALID;
+ goto end;
+ }
+
/*
* Prepare a contiguous array of file descriptors to send them.
*
/*
* Prepare a contiguous array of file descriptors to send them.
*
This page took
0.024397 seconds
and
4
git commands to generate.