Skip to content

Commit 0e4d4dc

Browse files
ceggers-arriVudentz
authored andcommitted
Bluetooth: SMP: make SM/PER/KDU/BI-04-C happy
The last test step ("Test with Invalid public key X and Y, all set to 0") expects to get an "DHKEY check failed" instead of "unspecified". Fixes: 6d19628 ("Bluetooth: SMP: Fail if remote and local public keys are identical") Signed-off-by: Christian Eggers <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent b6a2bf4 commit 0e4d4dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/bluetooth/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
27432743
if (!test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags) &&
27442744
!crypto_memneq(key, smp->local_pk, 64)) {
27452745
bt_dev_err(hdev, "Remote and local public keys are identical");
2746-
return SMP_UNSPECIFIED;
2746+
return SMP_DHKEY_CHECK_FAILED;
27472747
}
27482748

27492749
memcpy(smp->remote_pk, key, 64);

0 commit comments

Comments
 (0)