Diff between 7eccdecbda8f769393b2712fecd80b901f587137 and 0817a76ac04c7d31a72f784f02f642ca10e190fb

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 0dd84fc..0bedbe3 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -135,7 +135,7 @@ static void obex_session_free(struct obex_session *os)
 	if (os->current_folder)
 		g_free(os->current_folder);
 
-	if (!memcmp(os->target, PBAP_TARGET, TARGET_SIZE))
+	if (os->target && !memcmp(os->target, PBAP_TARGET, TARGET_SIZE))
 		pbap_phonebook_context_destroy(os);
 
 	g_free(os);