Actually use the point format selected for ECDH
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 4b7e4b5..16d49f3 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -707,7 +707,7 @@
         if( p[0] == POLARSSL_ECP_PF_UNCOMPRESSED ||
             p[0] == POLARSSL_ECP_PF_COMPRESSED )
         {
-            ssl->handshake->ec_point_format = p[0];
+            ssl->handshake->ecdh_ctx.point_format = p[0];
             SSL_DEBUG_MSG( 4, ( "point format selected: %d", p[0] ) );
             return( 0 );
         }