This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restore safe reinterpret_casts in SecureSocket

  • Loading branch information...
nlyan committed Sep 9, 2016
1 parent 1697778 commit a13dc92f2e42b40ba3b23baded1da3426000f6f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/net/SecureSocket.cpp
@@ -683,7 +683,7 @@ SecureSocket::verifyCertFingerprint()
}
// format fingerprint into hexdecimal format with colon separator
- String fingerprint(static_cast<char*>(tempFingerprint), tempFingerprintLen);
+ String fingerprint(reinterpret_cast<char*>(tempFingerprint), tempFingerprintLen);
formatFingerprint(fingerprint);
LOG((CLOG_NOTE "server fingerprint: %s", fingerprint.c_str()));

0 comments on commit a13dc92

Please sign in to comment.