[connman] Fixed derefrencing of NULL pointer. 67/72167/2
authorNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 31 May 2016 10:53:57 +0000 (16:23 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 8 Jun 2016 12:13:08 +0000 (17:43 +0530)
Change-Id: I2174f8e6afca4e2c7795ec8ca8118c296ee9fece
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/iptables.c

index dd1b2e6..c65f9ef 100755 (executable)
@@ -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);