From 61c7512638cb576a22aea4562c4b27d8cf70b74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 20 Aug 2004 14:05:31 +0000 Subject: [PATCH] send ABOR protect with security layer if its there git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14138 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/ftp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 7920946cc..45e6a4637 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -1741,8 +1741,11 @@ abort_remote (FILE * din) snprintf (buf, sizeof (buf), "%c%c%c", IAC, IP, IAC); if (send (fileno (cout), buf, 3, MSG_OOB) != 3) warn ("abort"); - fprintf (cout, "%cABOR\r\n", DM); - fflush (cout); + fprintf (cout, "%c", DM); + sec_fprintf(cout, "ABOR"); + sec_fflush (cout); + fprintf (cout, "\r\n"); + fflush(cout); FD_ZERO (&mask); if (fileno (cin) >= FD_SETSIZE) errx (1, "fd too large");