diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-12-22 00:08:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-12-22 00:08:25 +0000 |
commit | 84fe2337c701a52c6dc5cd8c1f6e9050478703f1 (patch) | |
tree | ae9de80169b9eba0d1595307e6eb79230808b675 | |
parent | 302412df64aa4b6572b13ef61dfd68c3f8ebbb8b (diff) | |
download | samba-84fe2337c701a52c6dc5cd8c1f6e9050478703f1.tar.gz samba-84fe2337c701a52c6dc5cd8c1f6e9050478703f1.tar.xz samba-84fe2337c701a52c6dc5cd8c1f6e9050478703f1.zip |
when no shares are returned the *shares pointer must be set to null
-rw-r--r-- | source/locking/locking.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index fc4ce725c5c..156ff016ea6 100644 --- a/source/locking/locking.c +++ b/source/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; |