summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-23 09:50:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-23 09:50:22 +0000
commit2c9cbad68a808567201f01d3f29f49611d59b690 (patch)
treece65c76b1051fb2284fdd38d148942106fb02794 /sdpd
parentd7362993329a76de9fc0eda2ae8d3449bbefcf58 (diff)
Allow removal of previously-set attributes
Diffstat (limited to 'sdpd')
-rw-r--r--sdpd/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdpd/service.c b/sdpd/service.c
index 83844d68..69c5242b 100644
--- a/sdpd/service.c
+++ b/sdpd/service.c
@@ -289,6 +289,9 @@ static sdp_record_t *extract_pdu_server(bdaddr_t *device, uint8_t *p, uint32_t h
rec->handle = handleExpected;
sdp_record_add(device, rec);
}
+ } else {
+ sdp_list_free(rec->attrlist, (sdp_free_func_t) sdp_data_free);
+ rec->attrlist = NULL;
}
while (localExtractedLength < seqlen) {