]> git.ipfire.org Git - thirdparty/krb5.git/commit
Remove {GETSOCKNAME,GETPEERNAME}_ARG2_TYPE 630/head
authorRobbie Harwood <rharwood@redhat.com>
Wed, 12 Apr 2017 02:30:25 +0000 (22:30 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 14 Apr 2017 16:03:37 +0000 (12:03 -0400)
commit1b907e0d755b3e4a6b3ba6d31accda6551e84875
treea988ce7107eedb08769bfd8ac61ae71df1a876d5
parent8815ad966df1b7c5a0120f88f656cde34290d5c1
Remove {GETSOCKNAME,GETPEERNAME}_ARG2_TYPE

We have had code since at least 1.6 in changepw.c and sendto_kdc.c
which assumes that we can pass a struct sockaddr * as the second
argument to getsockname() and getpeername(), so we can safely get rid
of that configure logic.  Also fix potential alignment issues in
krb5_sendauth() by using a struct sockaddr_storage instead of a
1024-byte character buffer to hold the local and peer addresses.

[ghudson@mit.edu: adjusted style of new code slightly; rewrote commit
message]
src/aclocal.m4
src/include/win-mac.h
src/lib/krb5/krb/sendauth.c
src/lib/krb5/os/genaddrs.c