diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-06-15 11:00:46 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-06-15 11:00:46 +0000 |
commit | 9d9a7646b189cc2471b925cc448862e14c10c0c4 (patch) | |
tree | b49fde55cf8c5fdd6ac2c1e36bb4d5a7f141eadb /src | |
parent | 07c0013ff14eb0b16570d33fc50a9130d008609c (diff) |
Check record struct pointer before adding an UUID
Diffstat (limited to 'src')
-rw-r--r-- | src/sdp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |