This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
status = rec->store(rec, data, TDB_REPLACE);
+ TALLOC_FREE(rec);
+
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1,("session_claim: unable to create session id "
"record: %s\n", nt_errstr(status)));
- TALLOC_FREE(rec);
return False;
}
return False;
}
- ctx->traverse(ctx, fn, private_data);
+ ctx->traverse_read(ctx, fn, private_data);
return True;
}