[ofa-general] [PATCH 1/1] libsdp - Convert failed bind errno to what normal SDP and TCP use

Jim Mott jim at mellanox.com
Tue Feb 19 13:09:11 PST 2008


Another "wrong errno" detected by a Mellanox regression test.

Signed-off-by: Jim Mott <jim at mellanox.com>
---

diff --git a/src/port.c b/src/port.c
index 534ab5f..60cb90a 100644
--- a/src/port.c
+++ b/src/port.c
@@ -1340,7 +1340,7 @@ bind(
                if ( ret < 0 ) {
                        /* Temporary sockets already closed by
check_legal_bind or 
                         * find_free_port */
-                       errno = EADDRINUSE;
+                       errno = EINVAL;
                        goto done;
                }



More information about the general mailing list