diff options
author | Jeremy Allison <jra@samba.org> | 2003-03-20 00:52:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-03-20 00:52:37 +0000 |
commit | bf795b684e608f82db822e0759e7b69afd451b65 (patch) | |
tree | 0ebca706c3507d48ca8ff8fe5ec486bf34434ecc /source/lib/messages.c | |
parent | 55681422e97ede0ff9446925c7678d6254b13878 (diff) | |
download | samba-bf795b684e608f82db822e0759e7b69afd451b65.tar.gz samba-bf795b684e608f82db822e0759e7b69afd451b65.tar.xz samba-bf795b684e608f82db822e0759e7b69afd451b65.zip |
lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues.
Jeremy.
Diffstat (limited to 'source/lib/messages.c')
-rw-r--r-- | source/lib/messages.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c index 5ff0e45c61f..c078472880d 100644 --- a/source/lib/messages.c +++ b/source/lib/messages.c @@ -315,7 +315,9 @@ static BOOL retrieve_all_messages(char **msgs_buf, size_t *total_len) kbuf = message_key_pid(sys_getpid()); - tdb_chainlock(tdb, kbuf); + if (tdb_chainlock(tdb, kbuf) == -1) + return False; + dbuf = tdb_fetch(tdb, kbuf); /* * Replace with an empty record to keep the allocated |