From: Martin v. Löwis Date: Tue, 5 Aug 2014 14:13:50 +0000 (+0200) Subject: Issue #22127: fix typo. X-Git-Tag: v3.5.0a1~1116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17fd1e1013e27032a8a14cc4a1e0521ef75d3699;p=python Issue #22127: fix typo. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f87ebe0b25..829fd388d1 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; }