From 8bbfd51a9f5c46514037622c8711152c570b91d4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 29 Jun 2011 13:36:20 +0300 Subject: [PATCH] gobex: Fix packet length updating when parsing headers --- gobex/gobex-packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c index 957e1cc39..6ac77bf6a 100644 --- a/gobex/gobex-packet.c +++ b/gobex/gobex-packet.c @@ -160,6 +160,7 @@ static gboolean parse_headers(GObexPacket *pkt, const void *data, gsize len, return FALSE; pkt->headers = g_slist_append(pkt->headers, header); + pkt->hlen += parsed; len -= parsed; buf += parsed; -- 2.47.3