1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

smbd: Early exit

Yes, this also showed up in profiles

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke
2013-12-06 10:31:22 +00:00
committed by Stefan Metzmacher
parent 5baa7402ba
commit 2a77e613cb

View File

@ -1699,10 +1699,16 @@ static bool validate_lock_entries(TALLOC_CTX *mem_ctx,
unsigned int i;
unsigned int num_valid_entries = 0;
struct lock_struct *locks = *pplocks;
TALLOC_CTX *frame = talloc_stackframe();
TALLOC_CTX *frame;
struct server_id *ids;
bool *exists;
if (*pnum_entries == 0) {
return true;
}
frame = talloc_stackframe();
ids = talloc_array(frame, struct server_id, *pnum_entries);
if (ids == NULL) {
DEBUG(0, ("validate_lock_entries: "