Diff between 1ef94086629da4ca87f193dca3b56cd652853474 and 730c94647230f4a7aeb378ceafaf8299ebc025f4

Changed Files

File Additions Deletions Status
obexd/plugins/pbap.c +6 -0 modified

Full Patch

diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index acac3aa..4485b7d 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -454,6 +454,12 @@ static struct apparam_field *parse_aparam(const uint8_t *buffer, uint32_t hlen)
 
 	param = g_new0(struct apparam_field, 1);
 
+	/*
+	 * As per spec when client doesn't include MAXLISTCOUNT_TAG then it
+	 * should be assume as Maximum value in vcardlisting 65535
+	 */
+	param->maxlistcount = UINT16_MAX;
+
 	g_obex_apparam_get_uint8(apparam, ORDER_TAG, &param->order);
 	g_obex_apparam_get_uint8(apparam, SEARCHATTRIB_TAG,
 						&param->searchattrib);