summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-01-09 18:11:04 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-09 18:23:08 +0200
commit091616204cca0b5b8464ee2a07b4cea01c4bde4d (patch)
tree6fd43ff4b076d65044e33c6a55d2080678b38834 /lib
parent5415f0b8c12ae34c7b81b013fca0a3c2706bcb6e (diff)
lib/sdp: Fix incorrect sizeof argument
length is a pointer to int table not int* table.
Diffstat (limited to 'lib')
-rw-r--r--lib/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sdp.c b/lib/sdp.c
index cbdf15e59..886e7cffa 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -4773,7 +4773,7 @@ int sdp_set_supp_feat(sdp_record_t *rec, const sdp_list_t *sf)
free(dtds);
goto fail;
}
- lengths = malloc(plen * sizeof(int *));
+ lengths = malloc(plen * sizeof(int));
if (!lengths) {
free(dtds);
free(vals);