Add `return NULL;` to error handling part of `set_credentials()`
function.
Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
PyErr_Format(PyExc_TypeError,
"Expected samba.credentaials for credentials argument got %s",
talloc_get_name(pytalloc_get_ptr(py_creds)));
PyErr_Format(PyExc_TypeError,
"Expected samba.credentaials for credentials argument got %s",
talloc_get_name(pytalloc_get_ptr(py_creds)));
}
status = gensec_set_credentials(security, creds);
}
status = gensec_set_credentials(security, creds);