From 2495420eae5f9e32ee0381f920940820e642e355 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Thu, 25 Jan 2018 09:59:39 +0900 Subject: [PATCH] Fixed crash for wrong struct type cast Change-Id: If2d9679b345d2253ea26db22710590c86a93dadc Signed-off-by: hyunuktak --- packaging/stc-manager.spec | 2 +- src/monitor/stc-monitor.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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: -- 2.7.4