At least on FreeBSD and Solaris, getpeername's last argument is a pointer to socklen_t, not size_t. This matters on 64-bit platforms, where size_t is 64-, but socklen_t -- usually -- still 32-bit wide. --- libsmb/libsmbclient.c Mon Apr 9 13:30:58 2007 +++ libsmb/libsmbclient.c Wed May 16 15:02:12 2007 @@ -501,5 +501,5 @@ SMBCSRV * server) { - size_t size; + socklen_t size; struct sockaddr addr;
Fixed in all branches, R23001-3