summaryrefslogtreecommitdiff
path: root/src/ippool.c
diff options
context:
space:
mode:
authorMario Domenech Goulart <mario.goulart@gmail.com>2012-02-28 09:29:12 -0300
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-02-28 13:41:15 +0100
commit918d4ce8f209ce150b7e7a31a4e7fee9d4639656 (patch)
treebc51f944b5ff427f528de0dcba10125e911750c0 /src/ippool.c
parent8a17ad73773a1a8abeb2c100e07568c9dde9a589 (diff)
downloadconnman-918d4ce8f209ce150b7e7a31a4e7fee9d4639656.tar.gz
connman-918d4ce8f209ce150b7e7a31a4e7fee9d4639656.tar.bz2
connman-918d4ce8f209ce150b7e7a31a4e7fee9d4639656.zip
ippool: Fix NULL pointer access
Not all allocated blocks info data structure have a pool associated.
Diffstat (limited to 'src/ippool.c')
-rw-r--r--src/ippool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ippool.c b/src/ippool.c
index b513b09f..58a0d281 100644
--- a/src/ippool.c
+++ b/src/ippool.c
@@ -296,7 +296,7 @@ update:
if (!(it->start <= info->start || info->start <= it->end))
continue;
- if (it->pool->collision_cb != NULL)
+ if (it->pool != NULL && it->pool->collision_cb != NULL)
it->pool->collision_cb(it->pool, it->pool->user_data);
return;