Better usage of dhm_calc_secret in SSL
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 7b9b6e9..d3096ab 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -2055,7 +2055,7 @@
         SSL_DEBUG_MPI( 3, "DHM: X ", &ssl->handshake->dhm_ctx.X  );
         SSL_DEBUG_MPI( 3, "DHM: GX", &ssl->handshake->dhm_ctx.GX );
 
-        ssl->handshake->pmslen = ssl->handshake->dhm_ctx.len;
+        ssl->handshake->pmslen = POLARSSL_PREMASTER_SIZE;
 
         if( ( ret = dhm_calc_secret( &ssl->handshake->dhm_ctx,
                                       ssl->handshake->premaster,