]> git.ipfire.org Git - thirdparty/curl.git/commit
mbedtls: re-enable an error check
authorViktor Szakats <commit@vsz.me>
Wed, 19 Mar 2025 17:58:56 +0000 (18:58 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Mar 2025 09:15:02 +0000 (10:15 +0100)
commitcbbccb8b3aa357926131375e7082b2579fa3fe82
tree5b10fea902320f1ed13dabb78fec96b2393328fd
parent9465327084c920deee7ba5abbcd55dbec6cf3e95
mbedtls: re-enable an error check

While adding support for key blobs, a check and error code update moved
after some logic, resulting in the updated code not checked anymore.

Detected by clang-tidy:
```
lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
Ref: https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453050def7323fbc8210886f909819edcc5f #7157
Cherry-picked from #16764
Closes #16766
lib/vtls/mbedtls.c