summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eet_connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eet_connection.c b/src/lib/eet_connection.c
index c044e3d..a192d4e 100644
--- a/src/lib/eet_connection.c
+++ b/src/lib/eet_connection.c
@@ -185,6 +185,8 @@ eet_connection_send(Eet_Connection *conn,
int data_size;
Eina_Bool ret = EINA_FALSE;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(conn, EINA_FALSE);
+
flat_data = eet_data_descriptor_encode_cipher(edd,
data_in,
cipher_key,
@@ -204,6 +206,8 @@ eet_connection_node_send(Eet_Connection *conn,
int data_size;
Eina_Bool ret = EINA_FALSE;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(conn, EINA_FALSE);
+
data = eet_data_node_encode_cipher(node, cipher_key, &data_size);
if (!data) return EINA_FALSE;
if (_eet_connection_raw_send(conn, data, data_size))