From bbf82a03b44aa616643c5e7a708eb143bc49a688 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 31 May 2010 15:07:41 -0300 Subject: [PATCH] obexd: Fix wrong response code to PUT requests for PBAP According to the spec we must respond any PUT request with the Bad Request response code. --- obexd/plugins/pbap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c index 041ce1574..f7b168d62 100644 --- a/obexd/plugins/pbap.c +++ b/obexd/plugins/pbap.c @@ -657,7 +657,7 @@ static void pbap_disconnect(struct obex_session *os, void *user_data) static int pbap_chkput(struct obex_session *os, void *user_data) { /* Rejects all PUTs */ - return -EINVAL; + return -EBADR; } static struct obex_service_driver pbap = { -- 2.47.3