diff options
author | cy <cy@FreeBSD.org> | 2009-08-29 04:02:01 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2009-08-29 04:02:01 +0800 |
commit | 434a13115d358a7927a8a9101b98f58326a3d666 (patch) | |
tree | de74f9725d248474c72347e0fdcd773d5e4402c8 | |
parent | 1a9b2e0f9420730952c6615c0aaa289eb6764479 (diff) | |
download | freebsd-ports-gnome-434a13115d358a7927a8a9101b98f58326a3d666.tar.gz freebsd-ports-gnome-434a13115d358a7927a8a9101b98f58326a3d666.tar.zst freebsd-ports-gnome-434a13115d358a7927a8a9101b98f58326a3d666.zip |
Remove redundant length check.
-rw-r--r-- | security/krb5-16/Makefile | 2 | ||||
-rw-r--r-- | security/krb5-16/files/patch-ai | 11 | ||||
-rw-r--r-- | security/krb5/Makefile | 2 | ||||
-rw-r--r-- | security/krb5/files/patch-ai | 11 |
4 files changed, 2 insertions, 24 deletions
diff --git a/security/krb5-16/Makefile b/security/krb5-16/Makefile index c132c0249ae9..712ee7d5f134 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 f5b733194344..3588a76ed199 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 c132c0249ae9..712ee7d5f134 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 f5b733194344..3588a76ed199 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) { |