summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-10-16 09:18:15 +0000
committerbrian <brian@FreeBSD.org>1999-10-16 09:18:15 +0000
commit16dcdca31e8b84ec8465f99be52857e8a613b94b (patch)
treec6883282e0bdf7bfbfe2d9c7f98ad9781f736fd7
parenta8118c03e147d00c667b6b69fcf23e32456312b3 (diff)
downloadFreeBSD-src-16dcdca31e8b84ec8465f99be52857e8a613b94b.zip
FreeBSD-src-16dcdca31e8b84ec8465f99be52857e8a613b94b.tar.gz
Don't ntohl() the signature before printing it... it's already
been done. Spotted by: Gert-Jan Vons <gert-jan@bigfoot.com>
-rw-r--r--usr.sbin/ppp/lqr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c
index b9073f3..b47e3fc 100644
--- a/usr.sbin/ppp/lqr.c
+++ b/usr.sbin/ppp/lqr.c
@@ -109,7 +109,7 @@ lqr_RecvEcho(struct fsm *fp, struct mbuf *bp)
hdlc->lqm.echo.seq_recv = lqr.sequence;
} else
log_Printf(LogWARN, "lqr_RecvEcho: Got sig 0x%08lx, not 0x%08lx !\n",
- (u_long)ntohl(lqr.signature), (u_long)SIGNATURE);
+ (u_long)lqr.signature, (u_long)SIGNATURE);
} else
log_Printf(LogWARN, "lqr_RecvEcho: Got packet size %d, expecting %ld !\n",
mbuf_Length(bp), (long)sizeof(struct echolqr));
OpenPOWER on IntegriCloud