summaryrefslogtreecommitdiffstats
path: root/source/lib/messages.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-20 00:52:37 +0000
committerJeremy Allison <jra@samba.org>2003-03-20 00:52:37 +0000
commitbf795b684e608f82db822e0759e7b69afd451b65 (patch)
tree0ebca706c3507d48ca8ff8fe5ec486bf34434ecc /source/lib/messages.c
parent55681422e97ede0ff9446925c7678d6254b13878 (diff)
downloadsamba-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.c4
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