diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2012-10-04 23:40:13 +0000 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2012-10-04 23:40:13 +0000 |
commit | 54cff889d96c0dd813effa351a1774bcb2617a36 (patch) | |
tree | 7af6145dd257dd93e98b48a1b931b365812ab105 | |
parent | 56931b95ef39abc649528b0056c086cdaaf286ba (diff) | |
download | eet-54cff889d96c0dd813effa351a1774bcb2617a36.tar.gz |
eet eet_connection.c: Added missing NULL check. Patch by Zbigniew Kosinski <z.kosinski@samsung.com>
On Thu, Oct 4, 2012 at 9:12 PM, Zbigniew Kosinski <z.kosinski@samsung.com> wrote:
> Hello,
>
> Please consider to add another NULL checks in eet lib:
>
> 1. eet_data_descriptor_element_add - NULL check for data descriptor
> handle parameter.
SVN revision: 77494
-rw-r--r-- | src/lib/eet_connection.c | 4 |
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)) |