diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-05-31 16:23:57 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-08 17:43:08 +0530 |
commit | 8615b75d70b07e357a8559352aaaf116093edcf3 (patch) | |
tree | b7a18cf2ba454cb6fef72dfb6052bfc26c875bba /src | |
parent | 5b43a352de45aef79f48bd9baa555e6ec194fe78 (diff) | |
download | connman-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>
Diffstat (limited to 'src')
-rwxr-xr-x | src/iptables.c | 4 |
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); |