openbsd-ports/net/gaim/patches/patch-src_proxy_c
brad 299086ef4e upgrade to gaim 1.2.1
fixes 3 security issues

CAN-2005-0965, CAN-2005-0966, CAN-2005-0967
2005-04-07 18:04:34 +00:00

41 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_proxy_c,v 1.9 2005/04/07 18:04:34 brad Exp $
--- src/proxy.c.orig Sun Mar 20 13:01:57 2005
+++ src/proxy.c Wed Apr 6 12:54:18 2005
@@ -319,7 +319,7 @@ static void host_resolved(gpointer data,
int rc, err;
GSList *hosts = NULL;
struct sockaddr *addr = NULL;
- size_t addrlen;
+ socklen_t addrlen;
gaim_debug(GAIM_DEBUG_INFO, "dns", "Host '%s' resolved\n", req->host);
gaim_input_remove(req->inpa);
@@ -387,7 +387,7 @@ static void trap_gdb_bug()
fputs("\n* * *\n",stderr);
fputs(message,stderr);
fputs("* * *\n\n",stderr);
- execlp("xmessage","xmessage","-center", message, NULL);
+ execlp("xmessage","xmessage","-center", message, (void *)NULL);
_exit(1);
}
@@ -428,7 +428,7 @@ gaim_dns_childthread(int child_out, int
char servname[20];
#else
struct sockaddr_in sin;
- const size_t addrlen = sizeof(sin);
+ const socklen_t addrlen = sizeof(sin);
#endif
#ifdef HAVE_SIGNAL_H
@@ -493,8 +493,7 @@ gaim_dns_childthread(int child_out, int
}
tmp = res;
while(res) {
- size_t ai_addrlen = res->ai_addrlen;
- write(child_out, &ai_addrlen, sizeof(ai_addrlen));
+ write(child_out, &(res->ai_addrlen), sizeof(res->ai_addrlen));
write(child_out, res->ai_addr, res->ai_addrlen);
res = res->ai_next;
}