[Python-checkins] CVS: python/dist/src/Modules
socketmodule.c,1.183,1.184
Jack Jansen
jack@oratrix.nl
Wed, 24 Oct 2001 16:52:48 +0200
Martin,
are you sure about this fix? The
if (error = EAI_NONAME
bit looks suspicious...
> Update of /cvsroot/python/python/dist/src/Modules
> In directory usw-pr-cvs1:/tmp/cvs-serv10527/Modules
>
> Modified Files:
> socketmodule.c
> Log Message:
>
>
>
> Index: socketmodule.c
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
> retrieving revision 1.183
> retrieving revision 1.184
> diff -C2 -d -r1.183 -r1.184
> *** socketmodule.c 2001/10/19 12:40:40 1.183
> --- socketmodule.c 2001/10/24 14:36:00 1.184
> ***************
> *** 623,626 ****
> --- 623,632 ----
> hints.ai_family = af;
> error = getaddrinfo(name, NULL, &hints, &res);
> + if (error = EAI_NONAME && af == AF_UNSPEC) {
> + /* On OSF/1 V5.1, numeric-to-addr conversion
> + fails if no address family is given. Assume IPv4 for now.*/
> + hints.ai_family = AF_INET;
> + error = getaddrinfo(name, NULL, &hints, &res);
> + }
> if (error) {
> PyGAI_Err(error);
>
>
> _______________________________________________
> Python-checkins mailing list
> Python-checkins@python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm