Merge pull request #259 from andryblack/avdtp_fix_arg_check

avdtp: fix arg check
This commit is contained in:
Matthias Ringwald 2019-11-04 17:00:43 +01:00 committed by GitHub
commit d378fcf879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,10 +169,10 @@ uint8_t avdtp_connect(bd_addr_t remote, avdtp_sep_type_t query_role, avdtp_conte
}
}
*avdtp_cid = connection->avdtp_cid;
if (!avdtp_cid) {
return L2CAP_LOCAL_CID_DOES_NOT_EXIST;
}
*avdtp_cid = connection->avdtp_cid;
avdtp_context->avdtp_cid = connection->avdtp_cid;
uint8_t err;