From 8fd159aa467c7c9d0f34bb979dfcab21e2efc6cd Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 17 Oct 2000 23:07:41 +0000 Subject: [PATCH] * ftpd.c (reply): For gssapi connection, do not include NULL in sealed reply string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12796 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftpd/ChangeLog | 5 +++++ src/appl/gssftp/ftpd/ftpd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 78beb9da0..1273af0df 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,8 @@ +2000-10-16 Ezra Peisach + + * ftpd.c (reply): For gssapi connection, do not include NULL in + sealed reply string. + 2000-10-03 Ezra Peisach * ftpd.c (login): Return of krb5_cc_get_name is now const char *. diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c index 45955acb6..680c1844e 100644 --- a/src/appl/gssftp/ftpd/ftpd.c +++ b/src/appl/gssftp/ftpd/ftpd.c @@ -1775,7 +1775,7 @@ reply(n, fmt, p0, p1, p2, p3, p4, p5) int conf_state; in_buf.value = in; - in_buf.length = strlen(in) + 1; + in_buf.length = strlen(in); maj_stat = gss_seal(&min_stat, gcontext, clevel == PROT_P, /* private */ GSS_C_QOP_DEFAULT, -- 2.26.2