summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2014-08-05 14:13:50 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2014-08-05 14:13:50 (GMT)
commit17fd1e1013e27032a8a14cc4a1e0521ef75d3699 (patch)
tree7a5f2027db5162fa72fc93c6b1c612a72bf297f5 /Modules/socketmodule.c
parent18874a9e13d75174358c83c2ae2fbe84c80de0ec (diff)
downloadcpython-17fd1e1013e27032a8a14cc4a1e0521ef75d3699.zip
cpython-17fd1e1013e27032a8a14cc4a1e0521ef75d3699.tar.gz
cpython-17fd1e1013e27032a8a14cc4a1e0521ef75d3699.tar.bz2
Issue #22127: fix typo.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index f87ebe0..829fd38 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1263,7 +1263,7 @@ idna_converter(PyObject *obj, struct maybe_idna *data)
return 0;
}
if (!PyBytes_Check(obj3)) {
- Py_DECREF(obj2);
+ Py_DECREF(obj3);
PyErr_SetString(PyExc_TypeError, "encoding of hostname failed to return bytes");
return 0;
}