diff options
author | lloyd <[email protected]> | 2012-01-27 23:18:40 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-27 23:18:40 +0000 |
commit | 467d07f38e31d5df6d12ae85ef68ba4317b10b68 (patch) | |
tree | 987f67d4df014d4af8749f276a8984836a002462 /src | |
parent | b0180988f9282099ae1f3e0118adcd657c18b982 (diff) |
Fix inverted conditional
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/c_kex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/c_kex.cpp b/src/tls/c_kex.cpp index 36fc39b34..58e458e81 100644 --- a/src/tls/c_kex.cpp +++ b/src/tls/c_kex.cpp @@ -286,10 +286,10 @@ Client_Key_Exchange::Client_Key_Exchange(const MemoryRegion<byte>& contents, if(psk.length() == 0) { if(policy.hide_unknown_users()) + psk = SymmetricKey(rng, 16); + else throw TLS_Exception(Alert::UNKNOWN_PSK_IDENTITY, "No PSK for identifier " + psk_identity); - else - psk = SymmetricKey(rng, 16); } } |