goep_server: assert outgoing packet was reserved in execute

This commit is contained in:
Matthias Ringwald 2022-12-22 15:16:58 +01:00
parent 223b1d643e
commit 9988a575e3

View File

@ -675,6 +675,8 @@ uint8_t goep_server_execute(uint16_t goep_cid, uint8_t response_code){
return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
}
btstack_assert(connection->state == GOEP_SERVER_CONNECTED);
connection->state = GOEP_SERVER_CONNECTED;
uint8_t * buffer = goep_server_get_outgoing_buffer(connection);