projects
/
platform
/
core
/
connectivity
/
stc-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b9e9ce
)
Firewall rule is invalid if target >= STC_FW_RULE_TARGET_MAX
97/190897/2
author
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Mon, 8 Oct 2018 11:04:53 +0000
(16:34 +0530)
committer
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Tue, 9 Oct 2018 10:41:48 +0000
(16:11 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I6d6b9c9e3ef5410705dc83167cda4cd7c16da7af
src/stc-firewall.c
patch
|
blob
|
history
diff --git
a/src/stc-firewall.c
b/src/stc-firewall.c
index
ec1f674
..
9f353ee
100755
(executable)
--- a/
src/stc-firewall.c
+++ b/
src/stc-firewall.c
@@
-1157,6
+1157,11
@@
gboolean __validate_fw_rule(firewall_rule_s *rule)
return FALSE;
}
+ if (rule->target >= STC_FW_RULE_TARGET_MAX) {
+ __STC_LOG_FUNC_EXIT__;
+ return FALSE;
+ }
+
if (rule->target == STC_FW_RULE_TARGET_LOG &&
(rule->log_prefix == NULL ||
rule->log_prefix[0] == '\0')) {