[libsoup] soup_socket_get_remote_address: fix
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup_socket_get_remote_address: fix
- Date: Mon, 21 Mar 2011 17:43:46 +0000 (UTC)
commit 8f9497f8eabbc5df48330e7b0317ac28a8b9b98e
Author: Dan Winship <danw gnome org>
Date: Mon Mar 21 13:42:44 2011 -0400
soup_socket_get_remote_address: fix
This was setting priv->local_addr instead of priv->remote_addr, and so
it always ended up returning NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=645227
libsoup/soup-socket.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-socket.c b/libsoup/soup-socket.c
index 3e7d725..b059a5b 100644
--- a/libsoup/soup-socket.c
+++ b/libsoup/soup-socket.c
@@ -1120,7 +1120,7 @@ soup_socket_get_remote_address (SoupSocket *sock)
addr = g_socket_get_remote_address (priv->gsock, NULL);
sa_len = g_socket_address_get_native_size (addr);
g_socket_address_to_native (addr, &sa, sa_len, NULL);
- priv->local_addr = soup_address_new_from_sockaddr ((struct sockaddr *)&sa, sa_len);
+ priv->remote_addr = soup_address_new_from_sockaddr ((struct sockaddr *)&sa, sa_len);
g_object_unref (addr);
}
g_mutex_unlock (priv->addrlock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]