Bluetooth: mesh: Fix for key size
For input method we should use input_size instead of output_size Signed-off-by: Łukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
This commit is contained in:
parent
958ff51da8
commit
c90e09aa88
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ int bt_mesh_input_string(const char *str)
|
|||
return 0;
|
||||
}
|
||||
|
||||
strncpy(link.auth, str, prov->output_size);
|
||||
strncpy(link.auth, str, prov->input_size);
|
||||
|
||||
if (atomic_test_and_clear_bit(link.flags, SEND_CONFIRM)) {
|
||||
send_confirm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue