Check record struct pointer before adding an UUID

This commit is contained in:
Marcel Holtmann 2007-06-15 11:00:46 +00:00
parent 07c0013ff1
commit 9d9a7646b1

View File

@ -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;
}