Fix kerberos helper, spotted and fixed by Andrea Parazzini

This commit is contained in:
giovanni 2011-09-05 07:18:41 +00:00
parent d6ea53e8e0
commit 946085d0d3
2 changed files with 15 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.120 2011/06/02 13:41:41 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.121 2011/09/05 07:18:41 giovanni Exp $
COMMENT= WWW and FTP proxy cache and accelerator COMMENT= WWW and FTP proxy cache and accelerator
DISTNAME= squid-2.7.STABLE9 DISTNAME= squid-2.7.STABLE9
REVISION= 11 REVISION= 12
CATEGORIES= www CATEGORIES= www
MASTER_SITES= ${HOMEPAGE}/Versions/v2/2.7/ MASTER_SITES= ${HOMEPAGE}/Versions/v2/2.7/
DIST_SUBDIR= squid DIST_SUBDIR= squid
@ -32,7 +32,7 @@ FLAVOR?=
PATCH_LIST= patch-* gcc-* PATCH_LIST= patch-* gcc-*
.endif .endif
AUTH= basic digest AUTH= basic digest negotiate
BASIC_AUTH= NCSA YP BASIC_AUTH= NCSA YP
DIGEST_AUTH= password DIGEST_AUTH= password
EXTERNAL_ACL= ip_user unix_group EXTERNAL_ACL= ip_user unix_group

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-helpers_negotiate_auth_squid_kerb_auth_squid_kerb_auth_c,v 1.1 2011/09/05 07:18:41 giovanni Exp $
--- helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c.orig Thu Sep 1 18:24:45 2011
+++ helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c Thu Sep 1 18:25:35 2011
@@ -114,7 +114,7 @@ char *gethost_name(void) {
}
freeaddrinfo(hres);
- hostname[MAXHOSTNAMELEN]='\0';
+ hostname[MAXHOSTNAMELEN-1]='\0';
return(strdup(hostname));
}