ecore_con: add missing goto for error case. 21/271721/1 submit/tizen/20220304.033428
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 25 Feb 2022 09:51:15 +0000 (18:51 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 25 Feb 2022 09:54:25 +0000 (18:54 +0900)
Change-Id: I8dc140ec95c43897db5cfabb4742c9608134a1c4
Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
src/lib/ecore_con/efl_net_server_unix.c

index cefb360..c08fce9 100644 (file)
@@ -172,6 +172,7 @@ _efl_net_server_unix_bind(Eo *o, Efl_Net_Server_Unix_Data *pd)
                {
                   ERR("abstract path is too long: %s", path);
                   err = EFL_NET_ERROR_COULDNT_RESOLVE_HOST;
+                  goto error;
                }
              addr.sun_path[0] = '\0';
              memcpy(addr.sun_path + 1, path, strlen(path) + 1);
@@ -184,6 +185,7 @@ _efl_net_server_unix_bind(Eo *o, Efl_Net_Server_Unix_Data *pd)
                {
                   ERR("path is too long: %s", path);
                   err = EFL_NET_ERROR_COULDNT_RESOLVE_HOST;
+                  goto error;
                }
              memcpy(addr.sun_path, path, strlen(path) + 1);
              addrlen = strlen(path) + 1 + offsetof(struct sockaddr_un, sun_path);