Fix seid counting in suspend and start requests

This commit is contained in:
Johan Hedberg 2007-08-17 12:06:38 +00:00
parent 6cfc40dfe5
commit ab622e0de1

View File

@ -941,7 +941,7 @@ static gboolean avdtp_start_cmd(struct avdtp *session, struct start_req *req,
return FALSE;
}
seid_count = 1 + (sizeof(struct start_req) - size);
seid_count = 1 + size - sizeof(struct start_req);
seid = &req->first_seid;
@ -1048,7 +1048,7 @@ static gboolean avdtp_suspend_cmd(struct avdtp *session,
return FALSE;
}
seid_count = 1 + (sizeof(struct suspend_req) - size);
seid_count = 1 + size - sizeof(struct suspend_req);
seid = &req->first_seid;