From 0d046adcddcf3a7c2e1c2d631ec8ca38a877b4a6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 27 May 2002 23:22:21 +0000 Subject: and this one, brian --- usr.sbin/ppp/ppp/radius.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp') diff --git a/usr.sbin/ppp/ppp/radius.c b/usr.sbin/ppp/ppp/radius.c index 08f7f73350c..de5cb37e662 100644 --- a/usr.sbin/ppp/ppp/radius.c +++ b/usr.sbin/ppp/ppp/radius.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: radius.c,v 1.15 2002/05/16 14:27:21 brian Exp $ + * $OpenBSD: radius.c,v 1.16 2002/05/27 23:22:20 deraadt Exp $ * */ @@ -759,8 +759,8 @@ radius_Account(struct radius *r, struct radacct *ac, struct datalink *dl, ac->authentic = 2; /* Assume RADIUS verified auth data */ /* Generate a session ID */ - snprintf(ac->session_id, sizeof ac->session_id, "%s%d-%s%lu", - dl->bundle->cfg.auth.name, (int)getpid(), + snprintf(ac->session_id, sizeof ac->session_id, "%s%ld-%s%lu", + dl->bundle->cfg.auth.name, (long)getpid(), dl->peer.authname, (unsigned long)stats->uptime); /* And grab our MP socket name */ -- cgit v1.2.3