Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Apr 27 14:14:22 UTC 2021 on sn-devel-184
struct passwd *pwd;
struct auth_serversupplied_info *server_info;
const char *username = pdb_get_username(sampass);
- TALLOC_CTX *tmp_ctx;
+ TALLOC_CTX *tmp_ctx = talloc_stackframe();
NTSTATUS status;
- tmp_ctx = talloc_stackframe();
- if (tmp_ctx == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
-
server_info = make_server_info(tmp_ctx);
if (server_info == NULL) {
status = NT_STATUS_NO_MEMORY;