projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a17ad7
)
ippool: Fix NULL pointer access
author
Mario Domenech Goulart
<mario.goulart@gmail.com>
Tue, 28 Feb 2012 12:29:12 +0000
(09:29 -0300)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Tue, 28 Feb 2012 12:41:15 +0000
(13:41 +0100)
Not all allocated blocks info data structure have a pool associated.
src/ippool.c
patch
|
blob
|
history
diff --git
a/src/ippool.c
b/src/ippool.c
index
b513b09
..
58a0d28
100644
(file)
--- 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;