diff --git a/lib/connect.c b/lib/connect.c index 05666ebb6..f04cce7e3 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -657,6 +657,10 @@ void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd) struct Curl_sockaddr_storage ssloc; struct SessionHandle *data = conn->data; + if(conn->socktype == SOCK_DGRAM) + /* there's no connection! */ + return; + if(!conn->bits.reuse) { len = sizeof(struct Curl_sockaddr_storage);