From bca3c265ddf6e342cac64a1fd0173d0440afad9c Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Tue, 21 Jul 2020 13:29:52 +0530 Subject: [PATCH] Donot use empty ssid from vconf Change-Id: Ic31df66d184de55d96d312c83efdd77daa58d454 Signed-off-by: Nishant Chaprana --- packaging/capi-network-tethering.spec | 2 +- src/tethering.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/capi-network-tethering.spec b/packaging/capi-network-tethering.spec index 99c920c..43f2714 100644 --- a/packaging/capi-network-tethering.spec +++ b/packaging/capi-network-tethering.spec @@ -1,6 +1,6 @@ Name: capi-network-tethering Summary: Tethering Framework -Version: 1.0.59 +Version: 1.1.1 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/tethering.c b/src/tethering.c index 9082884..d79c056 100755 --- a/src/tethering.c +++ b/src/tethering.c @@ -204,6 +204,9 @@ static bool __get_ssid_from_vconf(const char *path, char *ssid, unsigned int siz if (ptr == NULL) return false; + if (!g_strcmp0(ptr, "")) + return false; + if (!g_utf8_validate(ptr, -1, (const char **)&ptr_tmp)) *ptr_tmp = '\0'; -- 2.34.1