commit | 17fd1e1013e27032a8a14cc4a1e0521ef75d3699 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Aug 05 16:13:50 2014 +0200 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Aug 05 16:13:50 2014 +0200 |
tree | 7a5f2027db5162fa72fc93c6b1c612a72bf297f5 | |
parent | 18874a9e13d75174358c83c2ae2fbe84c80de0ec [diff] |
Issue #22127: fix typo.
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 @@ 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; }