Diff between b0285ab48a83bad501d0dfa88837af65016671ec and 6953eee756388466fad2eb49270e5034801cc1f9

Changed Files

File Additions Deletions Status
obexd/src/obex.c +1 -1 modified

Full Patch

diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index 4e3ec48..db04bfd 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -275,7 +275,7 @@ static void os_session_mark_aborted(struct obex_session *os)
 static void os_reset_session(struct obex_session *os)
 {
 	os_session_mark_aborted(os);
-	if (os->service->reset)
+	if (os->service && os->service->reset)
 		os->service->reset(os, os->service_data);
 
 	if (os->object) {