Diff between 0338eb46fb7b5b4b35bae0102c54f3e55dceffac and 00f7eef8f2265af94dadc72da6dac7287ac3eea2

Changed Files

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

Full Patch

diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 7461fd3..807e68f 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -558,6 +558,12 @@ static void pbap_disconnect(obex_t *obex)
 	unregister_session(os->cid);
 }
 
+static gint pbap_chkput(obex_t *obex, obex_object_t *obj)
+{
+	/* Rejects all PUTs */
+	return -EINVAL;
+}
+
 struct obex_service_driver pbap = {
 	.name = "Phonebook Access server",
 	.service = OBEX_PBAP,
@@ -568,7 +574,8 @@ struct obex_service_driver pbap = {
 	.connect = pbap_connect,
 	.get = pbap_get,
 	.setpath = pbap_setpath,
-	.disconnect = pbap_disconnect
+	.disconnect = pbap_disconnect,
+	.chkput = pbap_chkput
 };
 
 static int pbap_init(void)