From 4121d1611da65e13e0285a8714f21d6d6be2d4d7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 28 Apr 2003 09:19:09 +0000 Subject: inet_pton isn't portable, so use interpret_addr2. (This used to be commit 04d27381325561038bee1c27f10c748b9aaf447d) --- source3/smbd/session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd/session.c') diff --git a/source3/smbd/session.c b/source3/smbd/session.c index 2478b34d6e..ac06b9872d 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -158,7 +158,7 @@ void session_yield(user_struct *vuser) { TDB_DATA dbuf; struct sessionid sessionid; - struct in_addr client_ip; + struct in_addr *client_ip; TDB_DATA key; if (!tdb) return; @@ -177,14 +177,14 @@ void session_yield(user_struct *vuser) memcpy(&sessionid, dbuf.dptr, sizeof(sessionid)); - inet_pton(AF_INET, sessionid.ip_addr, &client_ip); + client_ip = interpret_addr2(sessionid.ip_addr); SAFE_FREE(dbuf.dptr); #if WITH_UTMP if (lp_utmp()) { sys_utmp_yield(sessionid.username, sessionid.hostname, - &client_ip, + client_ip, sessionid.id_str, sessionid.id_num); } #endif -- cgit