diff options
author | Yang Tse <yangsita@gmail.com> | 2010-11-08 04:03:11 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-11-08 04:03:11 +0100 |
commit | dc3e7df1c99c2ee9dae06453adbb94fe9584bf75 (patch) | |
tree | 6578bc549399f347ce0b196154cd4028a29cdf6a /lib/polarssl.c | |
parent | 1171bc5c8aff58b337f180a443cd39a30150bfc6 (diff) |
fix compiler warning
Diffstat (limited to 'lib/polarssl.c')
-rw-r--r-- | lib/polarssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/polarssl.c b/lib/polarssl.c index e81e66091..bed76354a 100644 --- a/lib/polarssl.c +++ b/lib/polarssl.c @@ -221,7 +221,7 @@ Curl_polarssl_connect(struct connectdata *conn, ssl_set_dbg(&conn->ssl[sockindex].ssl, polarssl_debug, data); #endif - do { + for(;;) { if (!(ret = ssl_handshake(&conn->ssl[sockindex].ssl))) { break; } else if(ret != POLARSSL_ERR_NET_TRY_AGAIN) { @@ -250,7 +250,7 @@ Curl_polarssl_connect(struct connectdata *conn, break; } } - } while (1); + } infof(data, "PolarSSL: Handshake complete, cipher is %s\n", ssl_get_cipher(&conn->ssl[sockindex].ssl)); |