diff options
Diffstat (limited to 'chat/jabberd2/patches')
-rw-r--r-- | chat/jabberd2/patches/patch-configure | 4 | ||||
-rw-r--r-- | chat/jabberd2/patches/patch-router_router.c | 16 | ||||
-rw-r--r-- | chat/jabberd2/patches/patch-s2s_out.c | 54 | ||||
-rw-r--r-- | chat/jabberd2/patches/patch-sm_sm.c | 16 |
4 files changed, 2 insertions, 88 deletions
diff --git a/chat/jabberd2/patches/patch-configure b/chat/jabberd2/patches/patch-configure index 148221f36d4..b947aa58a5f 100644 --- a/chat/jabberd2/patches/patch-configure +++ b/chat/jabberd2/patches/patch-configure @@ -1,8 +1,8 @@ -$NetBSD: patch-configure,v 1.1 2011/02/06 19:23:51 schnoebe Exp $ +$NetBSD: patch-configure,v 1.2 2011/02/12 18:50:14 adam Exp $ --- configure.orig 2010-08-08 15:51:09.000000000 +0000 +++ configure -@@ -10878,7 +10878,7 @@ fi +@@ -10875,7 +10875,7 @@ fi # check for optimisation level { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS optimization level" >&5 $as_echo_n "checking CFLAGS optimization level... " >&6; } diff --git a/chat/jabberd2/patches/patch-router_router.c b/chat/jabberd2/patches/patch-router_router.c deleted file mode 100644 index a988d1561f1..00000000000 --- a/chat/jabberd2/patches/patch-router_router.c +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-router_router.c,v 1.1 2011/02/06 19:23:51 schnoebe Exp $ - -# correct a segfault in the router -# fixed upstream as r920 (will be in 2.2.12) - ---- router/router.c.orig 2010-08-08 15:50:56.000000000 +0000 -+++ router/router.c -@@ -886,7 +886,7 @@ static int _router_sx_callback(sx_t s, s - } - - /* top element must be router scoped */ -- if(NAD_NURI_L(nad, NAD_ENS(nad, 0)) != strlen(uri_COMPONENT) || strncmp(uri_COMPONENT, NAD_NURI(nad, NAD_ENS(nad, 0)), strlen(uri_COMPONENT)) != 0) { -+ if(NAD_ENS(nad, 0) < 0 || NAD_NURI_L(nad, NAD_ENS(nad, 0)) != strlen(uri_COMPONENT) || strncmp(uri_COMPONENT, NAD_NURI(nad, NAD_ENS(nad, 0)), strlen(uri_COMPONENT)) != 0) { - log_debug(ZONE, "invalid packet namespace, dropping"); - nad_free(nad); - return 0; diff --git a/chat/jabberd2/patches/patch-s2s_out.c b/chat/jabberd2/patches/patch-s2s_out.c deleted file mode 100644 index 303a25bd6f5..00000000000 --- a/chat/jabberd2/patches/patch-s2s_out.c +++ /dev/null @@ -1,54 +0,0 @@ -$NetBSD: patch-s2s_out.c,v 1.1 2011/02/06 19:23:51 schnoebe Exp $ - -# Resolver doesn't return IPv4 Address if resolve_aaaa (IPv6) is enabled -# fixed upstream as part of r915 (will be available in 2.2.12) - ---- s2s/out.c (revision 914) -+++ s2s/out.c (revision 915) -@@ -1071,10 +1071,8 @@ - - /* resolve hostname */ - free(query->cur_host); -- query->cur_host = strndup(ipport, ipport_len); -- tmp = malloc(sizeof(char) * port_len + 1); -- strncpy(tmp, c, port_len); -- tmp[port_len] = '\0'; -+ query->cur_host = strndup(ipport, ip_len); -+ tmp = strndup(c, port_len); - query->cur_port = atoi(tmp); - free(tmp); - query->cur_prio = res->prio; -@@ -1082,29 +1080,23 @@ - query->cur_expiry = res->expiry; - log_debug(ZONE, "dns ttl for %s@%p limited to %d", query->name, query, query->cur_expiry); - -- tmp = malloc(sizeof(char) * ip_len + 1); -- strncpy(tmp, ipport, ip_len); -- tmp[ip_len] = '\0'; -- - if (query->s2s->resolve_aaaa) { -- log_debug(ZONE, "dns request for %s@%p: AAAA %s", query->name, query, tmp); -+ log_debug(ZONE, "dns request for %s@%p: AAAA %s", query->name, query, query->cur_host); - -- query->query = dns_submit_a6(NULL, tmp, DNS_NOSRCH, _dns_result_aaaa, query); -+ query->query = dns_submit_a6(NULL, query->cur_host, DNS_NOSRCH, _dns_result_aaaa, query); - - /* if submit failed, call ourselves with a NULL result */ - if (query->query == NULL) - _dns_result_aaaa(ctx, NULL, query); - } else { -- log_debug(ZONE, "dns request for %s@%p: A %s", query->name, query, tmp); -+ log_debug(ZONE, "dns request for %s@%p: A %s", query->name, query, query->cur_host); - -- query->query = dns_submit_a4(NULL, tmp, DNS_NOSRCH, _dns_result_a, query); -+ query->query = dns_submit_a4(NULL, query->cur_host, DNS_NOSRCH, _dns_result_a, query); - - /* if submit failed, call ourselves with a NULL result */ - if (query->query == NULL) - _dns_result_a(ctx, NULL, query); - } -- -- free(tmp); - - /* finished */ - } else { diff --git a/chat/jabberd2/patches/patch-sm_sm.c b/chat/jabberd2/patches/patch-sm_sm.c deleted file mode 100644 index cb5a15520ef..00000000000 --- a/chat/jabberd2/patches/patch-sm_sm.c +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-sm_sm.c,v 1.1 2011/02/06 19:23:51 schnoebe Exp $ - -# fix segfault when debugging is turned on/up. -# fixed up stream as part of r910 (will be released with 2.2.12) - ---- sm/sm.c.orig 2010-08-08 15:50:55.000000000 +0000 -+++ sm/sm.c -@@ -138,7 +138,7 @@ int sm_sx_callback(sx_t s, sx_event_t e, - elem = nad_append_elem(nad, ns, "bind", 0); - nad_set_attr(nad, elem, -1, "name", domain, len); - nad_append_attr(nad, -1, "multi", "to"); -- log_debug(ZONE, "requesting domain bind for '%.*s'", domain, len); -+ log_debug(ZONE, "requesting domain bind for '%.*s'", len, domain); - sx_nad_write(sm->router, nad); - - } while(xhash_iter_next(sm->hosts)); |