Diff between 784f61bd0fdffe87364012bc3ba0e9a660c3a5e8 and 9561c462f0c549d1d722dfde188602155f5b07b7

Changed Files

File Additions Deletions Status
obexd/plugins/opp.c +1 -1 modified

Full Patch

diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c
index 055d2bd..f9448d1 100644
--- a/obexd/plugins/opp.c
+++ b/obexd/plugins/opp.c
@@ -168,7 +168,7 @@ static int opp_get(struct obex_session *os, obex_object_t *obj,
 {
 	const char *type;
 
-	if (obex_get_name(os) == NULL)
+	if (obex_get_name(os))
 		return -EPERM;
 
 	type = obex_get_type(os);