summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;
}