Fixed crash for wrong struct type cast 83/168183/2 accepted/tizen/unified/20180130.144325 accepted/tizen/unified/20180222.142204 submit/tizen/20180129.223849 submit/tizen/20180222.121108
authorhyunuktak <hyunuk.tak@samsung.com>
Thu, 25 Jan 2018 00:59:39 +0000 (09:59 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Thu, 25 Jan 2018 04:50:09 +0000 (13:50 +0900)
Change-Id: If2d9679b345d2253ea26db22710590c86a93dadc
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/stc-manager.spec
src/monitor/stc-monitor.c

index ea01601..4f25986 100644 (file)
@@ -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
index 62a2c5c..633b334 100755 (executable)
@@ -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: