aboutsummaryrefslogtreecommitdiffstats
path: root/security/krb5/files
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2009-08-29 04:02:01 +0800
committercy <cy@FreeBSD.org>2009-08-29 04:02:01 +0800
commit434a13115d358a7927a8a9101b98f58326a3d666 (patch)
treede74f9725d248474c72347e0fdcd773d5e4402c8 /security/krb5/files
parent1a9b2e0f9420730952c6615c0aaa289eb6764479 (diff)
downloadfreebsd-ports-gnome-434a13115d358a7927a8a9101b98f58326a3d666.tar.gz
freebsd-ports-gnome-434a13115d358a7927a8a9101b98f58326a3d666.tar.zst
freebsd-ports-gnome-434a13115d358a7927a8a9101b98f58326a3d666.zip
Remove redundant length check.
Diffstat (limited to 'security/krb5/files')
-rw-r--r--security/krb5/files/patch-ai11
1 files changed, 0 insertions, 11 deletions
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) {