projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fbd791
)
obexd/client/map: Check msg value is valid
34/32234/1
author
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Wed, 17 Dec 2014 05:48:50 +0000
(11:18 +0530)
committer
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Wed, 17 Dec 2014 05:48:50 +0000
(11:18 +0530)
Checks for NULL value before passing to the callback.
Git repo link:
http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=
621861cd84d6f4522b35b16b10a347e733808dda
Change-Id: I8927ea737cca05e8025b3d987e7557d259b58027
obexd/client/map.c
patch
|
blob
|
history
diff --git
a/obexd/client/map.c
b/obexd/client/map.c
index
d2d3d81
..
57e9a35
100644
(file)
--- a/
obexd/client/map.c
+++ b/
obexd/client/map.c
@@
-1131,7
+1131,8
@@
static void msg_element(GMarkupParseContext *ctxt, const char *element,
for (parser = msg_parsers; parser && parser->name; parser++) {
if (strcasecmp(key, parser->name) == 0) {
- parser->func(msg, values[i]);
+ if(values[i])
+ parser->func(msg, values[i]);
break;
}
}