From: Marcel Holtmann Date: Wed, 8 Jul 2009 18:55:29 +0000 (-0700) Subject: Check for valid service before dereferencing the order X-Git-Tag: 2.0_alpha~3590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11048dbc7e5faf97d779858e0b60f32744018248;p=framework%2Fconnectivity%2Fconnman.git Check for valid service before dereferencing the order --- diff --git a/src/service.c b/src/service.c index 06e8551..5c4379b 100644 --- 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; }