Changeset: 20e99cd0df86 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/20e99cd0df86
Modified Files:
common/stream/socket_stream.c
Branch: Aug2024
Log Message:
Slight improvement.
diffs (13 lines):
diff --git a/common/stream/socket_stream.c b/common/stream/socket_stream.c
--- a/common/stream/socket_stream.c
+++ b/common/stream/socket_stream.c
@@ -528,8 +528,7 @@ socket_open(SOCKET sock, const char *nam
struct sockaddr_storage a;
socklen_t l = (socklen_t) sizeof(a);
if (getpeername(sock, (struct sockaddr *) &a, &l) == 0) {
- if (a.ss_family == AF_UNIX)
- domain = AF_UNIX;
+ domain = a.ss_family;
}
}
#endif
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]