[krbdev.mit.edu #3482] AIX core dumps

Rich Snyder via RT rt-comment at krbdev.mit.edu
Mon Feb 27 18:30:51 EST 2006


Looks like this problem goes back a few versions and I found a patch on
the web the fixed the problem and just wanted to make sure that it got
into the next release:

The symptoms in AIX v5.3 were that when doing an initial kinit on the
server, I get the following message:

kinit(v5): Cannot resolve network address for KDC in requested realm
while getting initial credentials

...and a core dump.

The following patch fixed the problem.  Many thanks to Donn Cave.  I
searched the bug list, but couldn't find this mentioned in results of
the searches and wanted to make sure this was included.

Thanks!


Fix by Donn Cave:

    Donn Cave, donn <at> u.washington.edu

-----------------------------------
*** include/fake-addrinfo.h.dist        Wed Jun  1 12:24:32 2005
--- include/fake-addrinfo.h     Fri Aug 12 09:10:48 2005
***************
*** 1193,1199 ****
          a known service name for tcp or udp (as appropriate), an error
          code (for "host not found") is returned.  If the port maps to a
          known service for both udp and tcp, all is well.  */
!     if (serv && serv[0] && isdigit(serv[0])) {
         unsigned long lport;
         char *end;
         lport = strtoul(serv, &end, 10);
--- 1193,1208 ----
          a known service name for tcp or udp (as appropriate), an error
          code (for "host not found") is returned.  If the port maps to a
          known service for both udp and tcp, all is well.  */
!     /*
!     **
!     **  However, where AI_NUNERICSERV is defined (AIX 5) and was
specified,
!     **  this is unneeded and and broken - "discard" is not numeric.
!     */
!     if (serv && serv[0]
! #ifdef AI_NUMERICSERV
!              && !(hint->ai_flags & AI_NUMERICSERV)
! #endif
!              && isdigit(serv[0])) {
         unsigned long lport;
         char *end;
         lport = strtoul(serv, &end, 10);





More information about the krb5-bugs mailing list