diff options
author | yar <yar@FreeBSD.org> | 2005-02-16 11:35:51 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-02-16 11:35:51 +0000 |
commit | e7b22678a48aa80b1d81df24bd9601eb89fe2d21 (patch) | |
tree | fe484cc09eb89c03863b61cec471076bdbdb0cfd /libexec | |
parent | 631e693b399be9625e889d9cbbfaaecafba7da62 (diff) | |
download | FreeBSD-src-e7b22678a48aa80b1d81df24bd9601eb89fe2d21.zip FreeBSD-src-e7b22678a48aa80b1d81df24bd9601eb89fe2d21.tar.gz |
Add some consistency checks to the signal-related code.
MFC: along with rev. 1.202
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 5d8229d..1334757 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -2765,10 +2765,16 @@ flagxfer(int flag) { if (flag) { + if (transflag) + syslog(LOG_ERR, "Internal: flagxfer(1): " + "transfer already under way"); transflag = 1; maskurg(0); recvurg = 0; } else { + if (!transflag) + syslog(LOG_ERR, "Internal: flagxfer(0): " + "no active transfer"); maskurg(1); transflag = 0; } |