From d4f1993073d50934cc595f80564111b66cc8593f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 24 Sep 2001 00:39:24 +0000 Subject: fixed compile warning svn path=/trunk/; revision=13090 --- camel/camel-tcp-stream-openssl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/camel/camel-tcp-stream-openssl.c b/camel/camel-tcp-stream-openssl.c index 3271754fd7..256073d806 100644 --- a/camel/camel-tcp-stream-openssl.c +++ b/camel/camel-tcp-stream-openssl.c @@ -443,7 +443,6 @@ static int ssl_verify (int ok, X509_STORE_CTX *ctx) { CamelTcpStreamOpenSSL *stream; - CamelService *service; X509 *cert; SSL *ssl; int err; @@ -451,12 +450,12 @@ ssl_verify (int ok, X509_STORE_CTX *ctx) ssl = X509_STORE_CTX_get_ex_data (ctx, SSL_get_ex_data_X509_STORE_CTX_idx ()); stream = SSL_CTX_get_app_data (ssl->ctx); - service = stream ? stream->priv->service : NULL; cert = X509_STORE_CTX_get_current_cert (ctx); err = X509_STORE_CTX_get_error (ctx); - if (!ok && stream && camel_session_is_interactive (service->session)) { + if (!ok && stream) { + CamelService *service = stream->priv->service; char *prompt, *cert_str; char buf[257]; -- cgit