summaryrefslogtreecommitdiffstats
path: root/audio/gnome-media/files/patch-cddb-slave2_tcp.c
blob: f316b7f013014c6fc14ac5d7b0a4d12c50b123c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- cddb-slave2/tcp.c.orig  Mon Sep 20 14:52:50 2004
+++ cddb-slave2/tcp.c   Sat Mar 12 03:30:52 2005
@@ -265,7 +265,7 @@ gnet_tcp_socket_new_async (const GInetAd
        continue;
 
          sa_in6->sin6_scope_id = ifindex;
-         con = connect (s->sockfd, (struct sockaddr *)&sa6, sizeof(s->sa));
+         con = connect (s->sockfd, (struct sockaddr *)&sa6, sizeof(sa6));
          if (con == 0 || errno == EINPROGRESS)
                break;
 
@@ -283,7 +283,7 @@ gnet_tcp_socket_new_async (const GInetAd
       memcpy(&sa, &addr->sa, sizeof(sa));
       sa_in = (struct sockaddr_in *) &sa;
       sa_in->sin_family = AF_INET;
-      con = connect(s->sockfd, &sa, sizeof(s->sa));
+      con = connect(s->sockfd, &sa, sizeof(sa));
     }
 
   /* Connect (but non-blocking!) */