Diff between bcd9265d725f7e09746eb0716c40e9cdb2e95cb7 and 4b873ec8af81415a1c501aa1a9024146d78cd222

Changed Files

File Additions Deletions Status
gobex/gobex.c +2 -1 modified

Full Patch

diff --git a/gobex/gobex.c b/gobex/gobex.c
index 0d9b449..d7d325b 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -400,7 +400,8 @@ static void setup_srm(GObex *obex, GObexPacket *pkt, gboolean outgoing)
 		g_obex_header_get_uint8(hdr, &srm);
 		g_obex_debug(G_OBEX_DEBUG_COMMAND, "srm 0x%02x", srm);
 		set_srm(obex, op, srm);
-	}
+	} else if (!g_obex_srm_enabled(obex))
+		set_srm(obex, op, G_OBEX_SRM_DISABLE);
 
 	hdr = g_obex_packet_get_header(pkt, G_OBEX_HDR_SRMP);
 	if (hdr != NULL) {