diff options
author | Tom Yu <tlyu@mit.edu> | 2014-07-02 16:13:23 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2014-07-02 17:04:37 -0400 |
commit | 158a551b14b017d232066c4a053dc608d87fa172 (patch) | |
tree | d946d4f56bf33b0a1cbd317fe54a42669e840802 /src/lib/gssapi/gss_libinit.c | |
parent | 4bd50f73c80a86852ec0879abdf52202be40892b (diff) | |
download | krb5-158a551b14b017d232066c4a053dc608d87fa172.tar.gz krb5-158a551b14b017d232066c4a053dc608d87fa172.tar.xz krb5-158a551b14b017d232066c4a053dc608d87fa172.zip |
Fix bugs in bindresvport_sa() changes
In svctcp_create() and svcudp_bufcreate(), set sa->sa_len on platforms
where that field exists, so that a subsequent call to socklen() will
return the correct result.
To make the code more self-evidently correct, zero the entire struct
sockaddr_storage object, using the memset(&ss, 0, sizeof(ss)) idiom.
ticket: 7935
Diffstat (limited to 'src/lib/gssapi/gss_libinit.c')
0 files changed, 0 insertions, 0 deletions