libcli/nbt: Fix illegal tuple index access.
authorNoel Power <noel.power@suse.com>
Thu, 15 Feb 2018 15:02:58 +0000 (15:02 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Mar 2018 06:28:25 +0000 (07:28 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
libcli/nbt/pynbt.c

index 7162880c32c0a5257988f8a3896761ae19909304..70e08c69de980e3c8a3aa9c61ea3182c60d2b1e5 100644 (file)
@@ -289,7 +289,7 @@ static PyObject *py_nbt_name_register(PyObject *self, PyObject *args, PyObject *
                return NULL;
        }
 
-       ret = PyTuple_New(3);
+       ret = PyTuple_New(4);
        if (ret == NULL)
                return NULL;
        PyTuple_SetItem(ret, 0, PyString_FromString(io.out.reply_from));