]> granicus.if.org Git - python/commitdiff
Issue #22127: fix typo.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 5 Aug 2014 14:13:50 +0000 (16:13 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 5 Aug 2014 14:13:50 +0000 (16:13 +0200)
Modules/socketmodule.c

index f87ebe0b257ab87b0bd33ccfa3541f02da0d1f92..829fd388d11bd512631d7fd7a44c09c5d154fa9e 100644 (file)
@@ -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;
         }