Diff between a7a73c508cd686932aeab1bfd4d3448c6895b8dd and b458fd41c2e4393c42498a9587a9a696a80a621c

Changed Files

File Additions Deletions Status
obexd/src/obex.c +4 -0 modified

Full Patch

diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index bd4770d..7b4634e 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -873,6 +873,10 @@ static void cmd_put(GObex *obex, GObexPacket *req, gpointer user_data)
 
 	os->cmd = G_OBEX_OP_PUT;
 
+	/* Set size to unknown if a body header exists */
+	if (g_obex_packet_get_body(req))
+		os->size = OBJECT_SIZE_UNKNOWN;
+
 	parse_name(os, req);
 	parse_length(os, req);
 	parse_time(os, req);