From 4b37a2c1ee8b7bedeb10950a4bae80b7545df2c1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 22 Dec 1999 00:08:25 +0000 Subject: when no shares are returned the *shares pointer must be set to null (This used to be commit 84fe2337c701a52c6dc5cd8c1f6e9050478703f1) --- source3/locking/locking.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/locking') 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; -- cgit