aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 206a43edc..1ec33ecab 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -279,8 +279,9 @@ static CURLcode bindlocal(struct connectdata *conn,
failf(data, "Insufficient kernel memory was available: %d", errno);
break;
default:
- failf(data,"errno %d\n");
- } /* end of switch */
+ failf(data, "errno %d\n", errno);
+ break;
+ } /* end of switch(errno) */
return CURLE_HTTP_PORT_FAILED;
} /* end of else */