diff options
Diffstat (limited to 'lib/connect.c')
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c index 16104bc4f..45e18bc07 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -412,6 +412,10 @@ static CURLcode bindlocal(struct connectdata *conn, } if(done < 1) { + /* errorbuf is set false so failf will overwrite any message already in + the error buffer, so the user receives this error message instead of a + generic resolve error. */ + data->state.errorbuf = FALSE; failf(data, "Couldn't bind to '%s'", dev); return CURLE_INTERFACE_FAILED; } |