diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2013-02-15 11:07:50 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-02-18 10:00:33 +0200 |
commit | 67c7f0bf9b0c5d7023c60fdd4b0b287c212922e4 (patch) | |
tree | 9ca00326e8a941561efd4d1cbbd7615a16c335ab /lib | |
parent | 429cee00a556a774507a706f32dbfa840bffef62 (diff) |
lib: Add missing DTD validation in sdp_record_print()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sdp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1603,13 +1603,13 @@ static void print_dataseq(sdp_data_t *p) void sdp_record_print(const sdp_record_t *rec) { sdp_data_t *d = sdp_data_get(rec, SDP_ATTR_SVCNAME_PRIMARY); - if (d) + if (d && SDP_IS_TEXT_STR(d->dtd)) printf("Service Name: %.*s\n", d->unitSize, d->val.str); d = sdp_data_get(rec, SDP_ATTR_SVCDESC_PRIMARY); - if (d) + if (d && SDP_IS_TEXT_STR(d->dtd)) printf("Service Description: %.*s\n", d->unitSize, d->val.str); d = sdp_data_get(rec, SDP_ATTR_PROVNAME_PRIMARY); - if (d) + if (d && SDP_IS_TEXT_STR(d->dtd)) printf("Service Provider: %.*s\n", d->unitSize, d->val.str); } |