From 9561c462f0c549d1d722dfde188602155f5b07b7 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 16 Mar 2010 11:23:43 -0300 Subject: [PATCH] obexd: Fix OPP GET must be denied if the name header is included --- obexd/plugins/opp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c index 055d2bd02..f9448d188 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); -- 2.47.3