projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df0c916
)
Check for valid service before dereferencing the order
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 8 Jul 2009 18:55:29 +0000
(11:55 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 8 Jul 2009 18:55:29 +0000
(11:55 -0700)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
06e8551
..
5c4379b
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-1289,6
+1289,9
@@
struct connman_service *__connman_service_lookup_from_network(struct connman_net
unsigned int __connman_service_get_order(struct connman_service *service)
{
+ if (service == NULL)
+ return 0;
+
return service->order;
}