summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-12 19:07:23 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-12 19:07:23 +0000
commitd2cbca4f4e0690c0a31ef6de1e0187e0f5bb5be9 (patch)
tree614b1dac8394bac79b14c05f25dc0c061f877dab
parent12d3525ecefcc8ec1962572457cf49834a078b9a (diff)
UpdateServiceRecord: add/replace the rec handle attr before update it(when sdpd is running)
-rw-r--r--hcid/dbus-database.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c
index 0a6139a3..8ee04c36 100644
--- a/hcid/dbus-database.c
+++ b/hcid/dbus-database.c
@@ -270,6 +270,9 @@ static DBusHandlerResult update_service_record(DBusConnection *conn,
return error_failed(conn, msg, EIO);
}
} else {
+ sdp_data_t *d = sdp_data_alloc(SDP_UINT32, &handle);
+ sdp_attr_replace(sdp_record, SDP_ATTR_RECORD_HANDLE, d);
+
err = update_sdp_record(handle, sdp_record);
sdp_record_free(sdp_record);
if (err < 0) {