From: Nishant Chaprana Date: Tue, 21 Jul 2020 07:59:52 +0000 (+0530) Subject: Donot use empty ssid from vconf X-Git-Tag: submit/tizen/20200824.065557~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bca3c265ddf6e342cac64a1fd0173d0440afad9c;p=platform%2Fcore%2Fapi%2Ftethering.git Donot use empty ssid from vconf Change-Id: Ic31df66d184de55d96d312c83efdd77daa58d454 Signed-off-by: Nishant Chaprana --- 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';