summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-05-31 16:23:57 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-08 17:43:08 +0530
commit8615b75d70b07e357a8559352aaaf116093edcf3 (patch)
treeb7a18cf2ba454cb6fef72dfb6052bfc26c875bba
parent5b43a352de45aef79f48bd9baa555e6ec194fe78 (diff)
downloadconnman-8615b75d70b07e357a8559352aaaf116093edcf3.tar.gz
connman-8615b75d70b07e357a8559352aaaf116093edcf3.tar.bz2
connman-8615b75d70b07e357a8559352aaaf116093edcf3.zip
[connman] Fixed derefrencing of NULL pointer.
Change-Id: I2174f8e6afca4e2c7795ec8ca8118c296ee9fece Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/iptables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iptables.c b/src/iptables.c
index dd1b2e63..c65f9efc 100755
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -2311,6 +2311,10 @@ int __connman_iptables_commit(const char *table_name)
return -EINVAL;
repl = iptables_blob(table);
+#if defined TIZEN_EXT
+ if(!repl)
+ return -ENOMEM;
+#endif
if (debug_enabled)
dump_ipt_replace(repl);