This means setting the header number when all headers have been sent to OBEX_HEADER_EMPTY. --- plugins/pbap.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/plugins/pbap.c b/plugins/pbap.c index e10fa8c..6f605d4 100644 --- a/plugins/pbap.c +++ b/plugins/pbap.c @@ -980,6 +980,7 @@ static ssize_t vobject_pull_get_next_header(void *object, void *buf, size_t mtu, return array_read(obj->aparams, buf, mtu); } + *hi = OBEX_HDR_EMPTY; return 0; } @@ -1029,6 +1030,7 @@ static ssize_t vobject_list_get_next_header(void *object, void *buf, size_t mtu, if (pbap->params->maxlistcount == 0) return array_read(obj->aparams, buf, mtu); + *hi = OBEX_HDR_EMPTY; return 0; } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html