Changeset - 76f27d7c2928
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 16 years ago 2009-01-15 21:04:46
ohnobinki@ohnopublishing.net
net-irc/unrealircd: appended to the unrealircd-system-cares.patch to fix the prototype of a callback function in res.c
this should fix a segfault in unrealircd when clients connect. I have no idea how unrealircd didn't segfault when statically lunk because I don't think unrealircd changed the API of c-ares except to add a function that tells it config-info
2 files changed with 43 insertions and 1 deletions:
0 comments (0 inline, 0 general)
net-irc/unrealircd/Manifest
Show inline comments
 
AUX unrealircd-system-cares.patch 2836 RMD160 7dd7492273ae9a50f612eba14041e789bb26e655 SHA1 d212867dd9091d72076c4b86c561881721e8cef9 SHA256 6d20691999a3a6af6782a711abee6aee52fd4aa9a5f0ab885a871528c9138787
 
AUX unrealircd-system-cares.patch 4455 RMD160 32f40a2c7f275af950b1f37f22e2376641e62082 SHA1 2b49c4e24d0213110c063bdd170c9c5211880752 SHA256 e7a17449de094c7b42e82b7d2d739463ac1c80518afee11486ff21c42dfb050f
 
AUX unrealircd-system-tre.patch 3289 RMD160 784c62c2a5a0c0f6801e8acd94b1db751c10558d SHA1 6d3e6a204b94148db05a9b82b6100cab0a2776d5 SHA256 bfdf0893cddb809aa19b37ad541957cadc4bf1a9b0b8610c1a577508f2055288
 
AUX unrealircd.confd 499 RMD160 666439c6e992d3314f8694ba58e8f3e018421f1c SHA1 5cb49d7e9a79c7f8e0b2182dff47811a2f3fb885 SHA256 ae6ce779fae68c1380a7d37950c5ef3b695e434bb435dcdc0f6d3d2282f72582
 
AUX unrealircd.rc 640 RMD160 186125558866976380eddae397aba4534a088732 SHA1 815d6950ddb79ca86fa8c887a4386ae9ddd58abe SHA256 a1ac6330e573dc5429153de98c9a8619a92d7ae3502a06e47f392dcaf90f2b07
net-irc/unrealircd/files/unrealircd-system-cares.patch
Show inline comments
 
@@ -81,4 +81,46 @@ diff -u /var/tmp/portage/net-irc/unreali
 
 #
 
 # use the following on MIPS:
 
 #CFLAGS= -systype bsd43 -DSYSTYPE_BSD43 -I$(INCLUDEDIR)
 
--- /src/res.c	2006-09-19 08:45:18.000000000 -0400
 
+++ /tmp/buffer-content-12842ago	2009-01-15 20:51:26.000000000 -0500
 
@@ -49,9 +49,9 @@
 
 #include <res.h>
 

	
 
 /* Forward declerations */
 
-void unrealdns_cb_iptoname(void *arg, int status, struct hostent *he);
 
-void unrealdns_cb_nametoip_verify(void *arg, int status, struct hostent *he);
 
-void unrealdns_cb_nametoip_link(void *arg, int status, struct hostent *he);
 
+void unrealdns_cb_iptoname(void *arg, int status, int timeouts, struct hostent *he);
 
+void unrealdns_cb_nametoip_verify(void *arg, int status, int timeouts, struct hostent *he);
 
+void unrealdns_cb_nametoip_link(void *arg, int status, int timeouts, struct hostent *he);
 
 void unrealdns_delasyncconnects(void);
 
 static unsigned int unrealdns_haship(void *binaryip, int length);
 
 static void unrealdns_addtocache(char *name, void *binaryip, int length);
 
@@ -240,7 +240,7 @@
 
 #endif
 
 }
 
 
 
-void unrealdns_cb_iptoname(void *arg, int status, struct hostent *he)
 
+void unrealdns_cb_iptoname(void *arg, int status, int timeouts, struct hostent *he)
 
 {
 
 DNSReq *r = (DNSReq *)arg;
 
 DNSReq *newr;
 
@@ -290,7 +290,7 @@
 
 }
 
 
 
 
 
-void unrealdns_cb_nametoip_verify(void *arg, int status, struct hostent *he)
 
+void unrealdns_cb_nametoip_verify(void *arg, int status, int timeouts, struct hostent *he)
 
 {
 
 DNSReq *r = (DNSReq *)arg;
 
 aClient *acptr = r->cptr;
 
@@ -363,7 +363,7 @@
 
 	unrealdns_freeandremovereq(r);
 
 }
 
 
 
-void unrealdns_cb_nametoip_link(void *arg, int status, struct hostent *he)
 
+void unrealdns_cb_nametoip_link(void *arg, int status, int timeouts, struct hostent *he)
 
 {
 
 DNSReq *r = (DNSReq *)arg;
 
 int n;
 

	
0 comments (0 inline, 0 general)