summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-10-16 23:58:09 +0000
committerBrian Somers <brian@FreeBSD.org>1997-10-16 23:58:09 +0000
commit2c1dcebca0995729e3f10198911174495544c6e4 (patch)
treecf35087dc2d0cd1650d51e90eae78bd62ab39c99
parentff1ccc214a11fe5f473842c2886424a42ea37274 (diff)
Notes
-rw-r--r--usr.sbin/ppp/main.c4
-rw-r--r--usr.sbin/ppp/pap.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 12b46cedd8c3..6ff9ba2ee8bd 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.22.2.40 1997/09/22 00:50:37 brian Exp $
+ * $Id: main.c,v 1.22.2.41 1997/10/07 21:56:03 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -547,6 +547,8 @@ ReadTty()
n = read(netfd, linebuff, sizeof(linebuff) - 1);
if (n > 0) {
aft_cmd = 1;
+ linebuff[n] = '\0';
+ LogPrintf(LogCOMMAND, "Client: %s\n", linebuff);
DecodeCommand(linebuff, n, 1);
} else {
LogPrintf(LogPHASE, "client connection closed.\n");
diff --git a/usr.sbin/ppp/pap.c b/usr.sbin/ppp/pap.c
index 023050bcdf12..f2a054c69af8 100644
--- a/usr.sbin/ppp/pap.c
+++ b/usr.sbin/ppp/pap.c
@@ -18,7 +18,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: pap.c,v 1.7.2.6 1997/09/23 00:01:25 brian Exp $
+ * $Id: pap.c,v 1.7.2.7 1997/09/27 19:13:32 brian Exp $
*
* TODO:
*/
@@ -61,7 +61,10 @@ SendPapChallenge(int papid)
plen = namelen + keylen + 2;
LogPrintf(LogDEBUG, "SendPapChallenge: namelen = %d, keylen = %d\n",
namelen, keylen);
- LogPrintf(LogPHASE, "PAP: %s (%s)\n", VarAuthName, VarAuthKey);
+ if (LogIsKept(LogDEBUG))
+ LogPrintf(LogPHASE, "PAP: %s (%s)\n", VarAuthName, VarAuthKey);
+ else
+ LogPrintf(LogPHASE, "PAP: %s\n", VarAuthName);
lh.code = PAP_REQUEST;
lh.id = papid;
lh.length = htons(plen + sizeof(struct fsmheader));