summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-12-22 00:08:25 +0000
committerAndrew Tridgell <tridge@samba.org>1999-12-22 00:08:25 +0000
commit4b37a2c1ee8b7bedeb10950a4bae80b7545df2c1 (patch)
treedce90db4e9362cfc58283a970f8604ab931a4f79 /source3/locking
parent8177fc778b02d9f61ef482fc60d32f353be77ba4 (diff)
downloadsamba-4b37a2c1ee8b7bedeb10950a4bae80b7545df2c1.tar.gz
samba-4b37a2c1ee8b7bedeb10950a4bae80b7545df2c1.tar.bz2
samba-4b37a2c1ee8b7bedeb10950a4bae80b7545df2c1.zip
when no shares are returned the *shares pointer must be set to null
(This used to be commit 84fe2337c701a52c6dc5cd8c1f6e9050478703f1)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index fc4ce725c5..156ff016ea 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -227,6 +227,8 @@ int get_share_modes(connection_struct *conn,
struct locking_data *data;
int ret;
+ *shares = NULL;
+
dbuf = tdb_fetch(tdb, locking_key(dev, inode));
if (!dbuf.dptr) return 0;