Fixed warnings in case POLARSSL_X509_PARSE_C is not defined
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 208e69b..24cee1c 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -72,14 +72,14 @@
 
 static int ssl_session_copy( ssl_session *dst, const ssl_session *src )
 {
-    int ret;
-
     ssl_session_free( dst );
     memcpy( dst, src, sizeof( ssl_session ) );
 
 #if defined(POLARSSL_X509_PARSE_C)
     if( src->peer_cert != NULL )
     {
+        int ret;
+
         if( ( dst->peer_cert = polarssl_malloc( sizeof(x509_cert) ) ) == NULL )
             return( POLARSSL_ERR_SSL_MALLOC_FAILED );