Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ff678b7 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

DnsResolver/DnsTlsSocket - fixes bugprone-unused-return-value warning



Fixes:
  packages/modules/DnsResolver/DnsTlsSocket.cpp:216:5: error: the value returned by this function should be used [bugprone-unused-return-value,-warnings-as-errors]
      bio.release();
      ^
  packages/modules/DnsResolver/DnsTlsSocket.cpp:216:5: note: cast the expression to void to silence this warning

Test: builds
Bug: 153035880
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I683d13024ae70ff75d1e6d3c78c23a73ab9bc301
parent 88f87556
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ bssl::UniquePtr<SSL> DnsTlsSocket::sslConnect(int fd) {
    // This file descriptor is owned by mSslFd, so don't let libssl close it.
    bssl::UniquePtr<BIO> bio(BIO_new_socket(fd, BIO_NOCLOSE));
    SSL_set_bio(ssl.get(), bio.get(), bio.get());
    bio.release();
    (void)bio.release();

    if (!mCache->prepareSsl(ssl.get())) {
        return nullptr;