A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2001-July/019268.html below:

[Python-checkins] CVS: python/dist/src/Modules getaddrinfo.c,1.3,1.4

[Python-checkins] CVS: python/dist/src/Modules getaddrinfo.c,1.3,1.4Martin v. L?wis loewis@users.sourceforge.net
Sat, 21 Jul 2001 11:48:58 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5470

Modified Files:
	getaddrinfo.c 
Log Message:
Set ai_addrlen even if there is no sa_len.


Index: getaddrinfo.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/getaddrinfo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** getaddrinfo.c	2001/07/21 09:42:15	1.3
--- getaddrinfo.c	2001/07/21 18:48:56	1.4
***************
*** 189,192 ****
--- 189,193 ----
  	(ai)->ai_addr = (struct sockaddr *)((ai) + 1);\
  	memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\
+ 	(ai)->ai_addrlen = (gai_afd)->a_socklen;\
  	(ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\
  	((struct sockinet *)(ai)->ai_addr)->si_port = port;\




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4