Add code for validation check 37/185037/1
authorInkyun Kil <inkyun.kil@samsung.com>
Wed, 25 Jul 2018 09:52:39 +0000 (18:52 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Wed, 25 Jul 2018 09:54:33 +0000 (18:54 +0900)
Change-Id: I6cbaf5e83ee65a95118488ec051aa790f9640979
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/message_port_remote.c

index 4001d8d..5783b66 100755 (executable)
@@ -183,6 +183,11 @@ bool is_local_port_registed(const char *local_port, bool trusted, int *local_id,
        GHashTableIter iter;
        gpointer key, value;
 
+       if (__local_port_info == NULL) {
+               _LOGI("There is no registed local port");
+               return false;
+       }
+
        g_hash_table_iter_init(&iter, __local_port_info);
        while (g_hash_table_iter_next(&iter, &key, &value)) {
                message_port_local_port_info_s *mi = (message_port_local_port_info_s *)value;