Diff between 0cbb1f10f277568c2bf84b1dbf14bb01c139dd4a and b8c8567c3dd604e7d0830d25d723ca70bda12db2

Changed Files

File Additions Deletions Status
obexd/plugins/bluetooth.c +1 -0 modified

Full Patch

diff --git a/obexd/plugins/bluetooth.c b/obexd/plugins/bluetooth.c
index aab50fd..79de9a2 100644
--- a/obexd/plugins/bluetooth.c
+++ b/obexd/plugins/bluetooth.c
@@ -607,6 +607,7 @@ static GSList *start(struct obex_server *server,
 		error("bluetooth: unable to listen in psm %d: %s",
 				service->port, err->message);
 		g_error_free(err);
+		service->port = 0;
 	} else {
 		l = g_slist_prepend(l, io);
 		bt_io_get(io, BT_IO_L2CAP, &err, BT_IO_OPT_PSM, &service->port,