summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-06-15 11:00:46 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-06-15 11:00:46 +0000
commit9d9a7646b189cc2471b925cc448862e14c10c0c4 (patch)
treeb49fde55cf8c5fdd6ac2c1e36bb4d5a7f141eadb /src
parent07c0013ff14eb0b16570d33fc50a9130d008609c (diff)
Check record struct pointer before adding an UUID
Diffstat (limited to 'src')
-rw-r--r--src/sdp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sdp.c b/src/sdp.c
index 0414d013..920bc880 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -922,7 +922,8 @@ static sdp_data_t *extract_uuid(const uint8_t *p, int *len, sdp_record_t *rec)
return NULL;
}
d->dtd = *(uint8_t *) p;
- sdp_pattern_add_uuid(rec, &d->val.uuid);
+ if (rec)
+ sdp_pattern_add_uuid(rec, &d->val.uuid);
return d;
}