diff options
author | Clement Laforet <clement@FreeBSD.org> | 2004-04-30 21:29:04 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2004-04-30 21:29:04 +0000 |
commit | 9e81d14dae752ed8f7d5b55be0855e40881caf4e (patch) | |
tree | 474a923bc0568ef03a533e788257564727fe532c /www/pound/files/patch-pound.c | |
parent | update to version 2.6.2: (diff) |
- Update to 1.7
It fixes a security vulnerabilty.
http://www.apsis.ch/pound/pound_list/archive/2003/2003-12/1070234315000
PR: 65132
Submitted by: ryan <ports@c0decafe.net>
Reviewed by: me
Update approved by: anders (maintainer)
Diffstat (limited to '')
-rw-r--r-- | www/pound/files/patch-pound.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www/pound/files/patch-pound.c b/www/pound/files/patch-pound.c new file mode 100644 index 000000000000..58eec83c4d61 --- /dev/null +++ b/www/pound/files/patch-pound.c @@ -0,0 +1,30 @@ +--- pound.c Wed Mar 24 16:03:14 2004 ++++ pound.c Tue Mar 30 19:13:51 2004 +@@ -742,10 +742,11 @@ + logmsg(LOG_WARNING, "HTTP arg: malloc"); + close(clnt); + } else { ++ socklen_t namelen; + arg->sock = clnt; + arg->from_host = clnt_addr.sin_addr; +- memset(&arg->to_host, 0, n = sizeof(arg->to_host)); +- getsockname(http_sock[i], (struct sockaddr *)&arg->to_host, &n); ++ memset(&arg->to_host, 0, namelen = sizeof(arg->to_host)); ++ getsockname(http_sock[i], (struct sockaddr *)&arg->to_host, &namelen); + arg->ctx = NULL; + if(pthread_create(&thr, &attr, thr_http, (void *)arg)) { + logmsg(LOG_WARNING, "HTTP pthread_create: %s", strerror(errno)); +@@ -776,10 +777,11 @@ + logmsg(LOG_WARNING, "HTTPS arg: malloc"); + close(clnt); + } else { ++ socklen_t namelen; + arg->sock = clnt; + arg->from_host = clnt_addr.sin_addr; +- memset(&arg->to_host, 0, n = sizeof(arg->to_host)); +- getsockname(https_sock[i], (struct sockaddr *)&arg->to_host, &n); ++ memset(&arg->to_host, 0, namelen = sizeof(arg->to_host)); ++ getsockname(https_sock[i], (struct sockaddr *)&arg->to_host, &namelen); + arg->ctx = ctx[i]; + if(pthread_create(&thr, &attr, thr_http, (void *)arg)) { + logmsg(LOG_WARNING, "HTTPS pthread_create: %s", strerror(errno)); |