From: hyunuktak Date: Thu, 25 Jan 2018 00:59:39 +0000 (+0900) Subject: Fixed crash for wrong struct type cast X-Git-Tag: accepted/tizen/unified/20180130.144325^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=2495420eae5f9e32ee0381f920940820e642e355;p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git Fixed crash for wrong struct type cast Change-Id: If2d9679b345d2253ea26db22710590c86a93dadc Signed-off-by: hyunuktak --- diff --git a/packaging/stc-manager.spec b/packaging/stc-manager.spec index ea01601..4f25986 100644 --- a/packaging/stc-manager.spec +++ b/packaging/stc-manager.spec @@ -1,6 +1,6 @@ Name: stc-manager Summary: STC(Smart Traffic Control) manager -Version: 0.0.43 +Version: 0.0.44 Release: 0 Group: Network & Connectivity/Other License: Apache-2.0 diff --git a/src/monitor/stc-monitor.c b/src/monitor/stc-monitor.c index 62a2c5c..633b334 100755 --- a/src/monitor/stc-monitor.c +++ b/src/monitor/stc-monitor.c @@ -640,7 +640,7 @@ static gboolean __remove_rstns_foreach_application(gpointer key, goto out; /* remove restriction from system */ - __process_restriction(RST_UNSET, rstn_key, rstn_value, data); + __process_restriction(RST_UNSET, rstn_key, rstn_value, NULL); __print_rstn(rstn_key, rstn_value); out: @@ -1433,9 +1433,9 @@ static gboolean __add_rstn_foreach_application(gpointer key, /* add restriction to system */ if (rstn_value->rst_state == STC_RESTRICTION_EXCLUDED) - __process_restriction(RST_EXCLUDE, rstn_key, rstn_value, data); + __process_restriction(RST_EXCLUDE, rstn_key, rstn_value, NULL); else - __process_restriction(RST_SET, rstn_key, rstn_value, data); + __process_restriction(RST_SET, rstn_key, rstn_value, NULL); __print_rstn(rstn_key, rstn_value); out: