1 |
tester 09/08/31 21:38:05 |
2 |
|
3 |
Added: loudmouth-1.4.3-async-fix.patch |
4 |
Log: |
5 |
Import anopatch for asyncns crash from debian |
6 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/loudmouth/files/loudmouth-1.4.3-async-fix.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: loudmouth-1.4.3-async-fix.patch |
15 |
=================================================================== |
16 |
--- a/loudmouth/lm-socket.c |
17 |
+++ b/loudmouth/lm-socket.c |
18 |
@@ -1022,7 +1022,7 @@ _lm_socket_create_phase2 (LmSocket *socket, struct addrinfo *ans) |
19 |
if (socket->connect_func) { |
20 |
(socket->connect_func) (socket, FALSE, socket->user_data; |
21 |
} |
22 |
- g_free (socket->connect_data); |
23 |
+ g_free (socket->connect_data); |
24 |
socket->connect_data = NULL; |
25 |
return; |
26 |
} |
27 |
@@ -1107,6 +1107,10 @@ lm_socket_create (GMainContext *context, |
28 |
_lm_socket_create_phase1 (socket, NULL, 0); |
29 |
} |
30 |
|
31 |
+#ifndef HAVE_ASYNCNS |
32 |
+ /* Only do this check if we are not using asyncns or it will crash. |
33 |
+ * Report and patch by Senko. |
34 |
+ */ |
35 |
if (socket->connect_data == NULL) { |
36 |
/* Open failed synchronously, probably a DNS lookup problem */ |
37 |
lm_socket_unref(socket); |
38 |
@@ -1118,6 +1122,7 @@ lm_socket_create (GMainContext *context, |
39 |
|
40 |
return NULL; |
41 |
} |
42 |
+#endif /* HAVE_ASYNCNS */ |
43 |
|
44 |
|
45 |
/* If the connection fails synchronously, we don't want to call the |