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:
Łukasz Rymanowski 2017-09-01 13:26:36 +02:00 committed by Anas Nashif
commit c90e09aa88

View file

@ -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();