Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(90)

Unified Diff: Modules/overlapped.c

Issue 28261: wrong error messages when using PyArg_ParseTuple to parse normal tuples
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
--- a/Modules/overlapped.c Thu Sep 22 11:43:46 2016 +0300
+++ b/Modules/overlapped.c Fri Sep 23 22:25:22 2016 +0300
@@ -990,7 +990,9 @@
((SOCKADDR_IN*)Address)->sin_port = htons(Port);
return Length;
}
- else if (PyArg_ParseTuple(obj, "uHkk", &Host, &Port, &FlowInfo, &ScopeId))
+ else if (PyArg_ParseTuple(obj,
+ "uHkk;ConnectEx: illegal address_as_bytes "
+ "argument", &Host, &Port, &FlowInfo, &ScopeId))
{
PyErr_Clear();
Address->sa_family = AF_INET6;

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+