diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-28 09:19:09 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-28 09:19:09 +0000 |
commit | 4121d1611da65e13e0285a8714f21d6d6be2d4d7 (patch) | |
tree | 518e8d0931cefd7c07c61568f90878d05b18e889 /source3 | |
parent | 9784320676b03c8a61525ed85816357e6a04c8ab (diff) | |
download | samba-4121d1611da65e13e0285a8714f21d6d6be2d4d7.tar.gz samba-4121d1611da65e13e0285a8714f21d6d6be2d4d7.tar.bz2 samba-4121d1611da65e13e0285a8714f21d6d6be2d4d7.zip |
inet_pton isn't portable, so use interpret_addr2.
(This used to be commit 04d27381325561038bee1c27f10c748b9aaf447d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/session.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |