aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c4
1 files changed, 4 insertions, 0 deletions
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);