diff options
-rw-r--r-- | apps/s_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 3828d79e7d..2fa35f4d10 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -729,7 +729,8 @@ bad: #ifndef OPENSSL_NO_RSA #if 1 - SSL_CTX_set_tmp_rsa_callback(ctx,tmp_rsa_cb); + if (!no_tmp_rsa) + SSL_CTX_set_tmp_rsa_callback(ctx,tmp_rsa_cb); #else if (!no_tmp_rsa && SSL_CTX_need_tmp_RSA(ctx)) { |