summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2009-08-28 20:02:01 +0000
committercy <cy@FreeBSD.org>2009-08-28 20:02:01 +0000
commit434a13115d358a7927a8a9101b98f58326a3d666 (patch)
treede74f9725d248474c72347e0fdcd773d5e4402c8
parent1a9b2e0f9420730952c6615c0aaa289eb6764479 (diff)
downloadFreeBSD-ports-434a13115d358a7927a8a9101b98f58326a3d666.zip
FreeBSD-ports-434a13115d358a7927a8a9101b98f58326a3d666.tar.gz
Remove redundant length check.
-rw-r--r--security/krb5-16/Makefile2
-rw-r--r--security/krb5-16/files/patch-ai11
-rw-r--r--security/krb5/Makefile2
-rw-r--r--security/krb5/files/patch-ai11
4 files changed, 2 insertions, 24 deletions
diff --git a/security/krb5-16/Makefile b/security/krb5-16/Makefile
index c132c02..712ee7d 100644
--- a/security/krb5-16/Makefile
+++ b/security/krb5-16/Makefile
@@ -7,7 +7,7 @@
PORTNAME= krb5
PORTVERSION= 1.6.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
PATCH_SITES= http://web.mit.edu/kerberos/advisories/
diff --git a/security/krb5-16/files/patch-ai b/security/krb5-16/files/patch-ai
index f5b7331..3588a76 100644
--- a/security/krb5-16/files/patch-ai
+++ b/security/krb5-16/files/patch-ai
@@ -15,14 +15,3 @@
addrlen = sizeof (his_addr);
if (getpeername(0, (struct sockaddr *)&his_addr, &addrlen) < 0) {
-@@ -2312,6 +2318,10 @@
- if ((length = krb_mk_safe((u_char *)&cksum, out_buf, sizeof(cksum),
- &kdata.session,&ctrl_addr, &his_addr)) == -1) {
- secure_error("ADAT: krb_mk_safe failed");
-+ return(0);
-+ }
-+ if (length >= (FTP_BUFSIZ - sizeof("ADAT=")) / 4 * 3) {
-+ secure_error("ADAT: reply too long");
- return(0);
- }
- if (length >= (FTP_BUFSIZ - sizeof("ADAT=")) / 4 * 3) {
diff --git a/security/krb5/Makefile b/security/krb5/Makefile
index c132c02..712ee7d 100644
--- a/security/krb5/Makefile
+++ b/security/krb5/Makefile
@@ -7,7 +7,7 @@
PORTNAME= krb5
PORTVERSION= 1.6.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
PATCH_SITES= http://web.mit.edu/kerberos/advisories/
diff --git a/security/krb5/files/patch-ai b/security/krb5/files/patch-ai
index f5b7331..3588a76 100644
--- a/security/krb5/files/patch-ai
+++ b/security/krb5/files/patch-ai
@@ -15,14 +15,3 @@
addrlen = sizeof (his_addr);
if (getpeername(0, (struct sockaddr *)&his_addr, &addrlen) < 0) {
-@@ -2312,6 +2318,10 @@
- if ((length = krb_mk_safe((u_char *)&cksum, out_buf, sizeof(cksum),
- &kdata.session,&ctrl_addr, &his_addr)) == -1) {
- secure_error("ADAT: krb_mk_safe failed");
-+ return(0);
-+ }
-+ if (length >= (FTP_BUFSIZ - sizeof("ADAT=")) / 4 * 3) {
-+ secure_error("ADAT: reply too long");
- return(0);
- }
- if (length >= (FTP_BUFSIZ - sizeof("ADAT=")) / 4 * 3) {
OpenPOWER on IntegriCloud