diff options
author | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-12-19 11:22:53 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-12-19 11:22:53 -0500 |
commit | 79fbe9e29f330c2ad893717f951719b68b6ee80b (patch) | |
tree | 7b3c071bf5d37a05cc59cc0ef6f822885e5bcc65 | |
parent | 41f2553c8606adf2729b1e8b51ccff3b828e31ee (diff) | |
download | krb5-79fbe9e29f330c2ad893717f951719b68b6ee80b.tar.gz krb5-79fbe9e29f330c2ad893717f951719b68b6ee80b.tar.xz krb5-79fbe9e29f330c2ad893717f951719b68b6ee80b.zip |
Enable pyrad-based tests
- update a test wrapper to properly handle things that the new libkrad
does, and add python-pyrad as a build requirement so that we can run
its tests
-rw-r--r-- | krb5.spec | 7 | ||||
-rw-r--r-- | noport.c | 32 |
2 files changed, 25 insertions, 14 deletions
@@ -178,6 +178,9 @@ BuildRequires: net-tools, rpcbind BuildRequires: hostname BuildRequires: iproute %endif +%if 0%{?fedora} >= 9 +BuildRequires: python-pyrad +%endif %if %{WITH_LDAP} BuildRequires: openldap-devel @@ -1030,6 +1033,10 @@ exit 0 %{_sbindir}/uuserver %changelog +* Thu Dec 19 2013 Nalin Dahyabhai <nalin@redhat.com> +- update a test wrapper to properly handle things that the new libkrad does, + and add python-pyrad as a build requirement so that we can run its tests + * Wed Dec 18 2013 Nalin Dahyabhai <nalin@redhat.com> - 1.11.3-37 - backport fixes to krb5_copy_context (RT#7807, #1044735/#1044739) @@ -87,21 +87,25 @@ sendto(int sockfd, const void *buf, size_t len, int flags, return next_sendto(sockfd, buf, len, flags, dest_addr, addrlen); } - switch (dest_addr->sa_family) { - case AF_INET: - port = ntohs(((struct sockaddr_in *)dest_addr)->sin_port); - if (port_is_okay(port) != 0) { - return -1; - } - break; - case AF_INET6: - port = ntohs(((struct sockaddr_in6 *)dest_addr)->sin6_port); - if (port_is_okay(port) != 0) { - return -1; + if (dest_addr != NULL) { + switch (dest_addr->sa_family) { + case AF_INET: + port = ((struct sockaddr_in *)dest_addr)->sin_port; + port = ntohs(port); + if (port_is_okay(port) != 0) { + return -1; + } + break; + case AF_INET6: + port = ((struct sockaddr_in6 *)dest_addr)->sin6_port; + port = ntohs(port); + if (port_is_okay(port) != 0) { + return -1; + } + break; + default: + break; } - break; - default: - break; } return next_sendto(sockfd, buf, len, flags, dest_addr, addrlen); } |