nbt/pynbt: initialize optional parameter in nbt_name_refresh
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 12 Apr 2018 05:10:10 +0000 (17:10 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 13 Apr 2018 05:27:14 +0000 (07:27 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
libcli/nbt/pynbt.c

index bee98b3b5cbbc2855458a0a7a73c3764b636e9b6..254c98a4b896ac2ec86561b65e1e614c7e0701f8 100644 (file)
@@ -321,6 +321,7 @@ static PyObject *py_nbt_name_refresh(PyObject *self, PyObject *args, PyObject *k
 
        io.in.broadcast = true;
        io.in.nb_flags = 0;
+       io.in.ttl = 0;
        io.in.timeout = 0;
        io.in.retries = 0;