Blame SOURCES/0049-sdap_print_server-use-getpeername-to-get-server-addr.patch
|
|
905b4d |
From 29ee270deee5f3c0b049f612245a734e626b6b33 Mon Sep 17 00:00:00 2001
|
|
|
905b4d |
From: Sumit Bose <sbose@redhat.com>
|
|
|
905b4d |
Date: Fri, 24 Oct 2014 18:27:07 +0200
|
|
|
905b4d |
Subject: [PATCH 49/64] sdap_print_server: use getpeername() to get server
|
|
|
905b4d |
address
|
|
|
905b4d |
|
|
|
905b4d |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
905b4d |
---
|
|
|
905b4d |
src/providers/ldap/sdap_async.c | 2 +-
|
|
|
905b4d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
905b4d |
|
|
|
905b4d |
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
|
|
|
905b4d |
index 560d13789b88b7b7f3a09558fa2d2844f0fa036e..a6954620bd0f27b5f2d2e45563af9d1440d9cf7c 100644
|
|
|
905b4d |
--- a/src/providers/ldap/sdap_async.c
|
|
|
905b4d |
+++ b/src/providers/ldap/sdap_async.c
|
|
|
905b4d |
@@ -1107,7 +1107,7 @@ static void sdap_print_server(struct sdap_handle *sh)
|
|
|
905b4d |
return;
|
|
|
905b4d |
}
|
|
|
905b4d |
|
|
|
905b4d |
- ret = getsockname(fd, (struct sockaddr *) &ss, &ss_len);
|
|
|
905b4d |
+ ret = getpeername(fd, (struct sockaddr *) &ss, &ss_len);
|
|
|
905b4d |
if (ret == -1) {
|
|
|
905b4d |
DEBUG(SSSDBG_MINOR_FAILURE, "getsockname failed\n");
|
|
|
905b4d |
return;
|
|
|
905b4d |
--
|
|
|
905b4d |
1.9.3
|
|
|
905b4d |
|