From c57a8d82f70af16824abd4779ef506c6ec0c332f Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 29 Jul 2010 12:08:05 +0300 Subject: [PATCH] obexd: Fix crash when processing OBEX_EV_PROGRESS This crash can be observed when running codenomicon PBAP tests. --- obexd/src/obex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/src/obex.c b/obexd/src/obex.c index 05143f594..ab7125c24 100644 --- a/obexd/src/obex.c +++ b/obexd/src/obex.c @@ -1095,7 +1095,7 @@ static void obex_event_cb(obex_t *obex, obex_object_t *obj, int mode, switch (evt) { case OBEX_EV_PROGRESS: - if (os->service->progress) + if (os->service && os->service->progress) os->service->progress(os, os->service_data); break; case OBEX_EV_ABORT: -- 2.47.3