summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-07-01 01:19:13 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-07-01 01:19:13 +0000
commitfb1429c1970bc123e191f0cb7cc764faf4b86998 (patch)
tree134dd0100da50a13931d0d82e0cfbeb435fe4e6e /source3/locking
parentf3f5abbe2f3a494a5114908ba93d140e2accd031 (diff)
downloadsamba-fb1429c1970bc123e191f0cb7cc764faf4b86998.tar.gz
samba-fb1429c1970bc123e191f0cb7cc764faf4b86998.tar.bz2
samba-fb1429c1970bc123e191f0cb7cc764faf4b86998.zip
client.c: New print queue query code from Jeff C. Foster " <jfoste@wgc.woodward.com>
ipc.c: Added code for returning restricted lists of servers. loadparm.c: Changed default for force create mode to 000. Changed default maxmux to 50 to comply with NT. locking.c: Fixed silly crash bug with slow share mode code. nameannounce.c: Added code for returning restricted lists of servers. namedbserver.c: Added code for returning restricted lists of servers. nameelect.c: Added code for returning restricted lists of servers. namework.c: Added code for returning restricted lists of servers. nmbsync.c: Added code for returning restricted lists of servers. server.c: Added quota fix Albrecht Gebhardt <albrecht.gebhardt@uni-klu.ac.at> smb.h: Added define for COPYBUF_SIZE. system.c: Rename across filesystems Patch from Warren Birnbaum <warrenb@hpcvscdp.cv.hp.com> util.c: Minor fix for warning. (This used to be commit 1c6e433caa22813a699c9766847886eb59755f8b)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 2c392e924d..64dc207cb7 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -893,7 +893,8 @@ it left a share mode entry with mode 0x%X in share file %s\n",
DEBUG(0,("get_share_modes: share file %s had no valid entries - deleting it !\n",
fname));
if(*old_shares)
- free((char *)old_shares);
+ free((char *)*old_shares);
+ *old_shares = 0;
if(buf)
free(buf);
delete_share_file(cnum, fname);
@@ -910,7 +911,8 @@ it left a share mode entry with mode 0x%X in share file %s\n",
DEBUG(0,("ERROR: get_share_modes: lseek failed to reset to \
position 0 for share mode file %s (%s)\n", fname, strerror(errno)));
if(*old_shares)
- free((char *)old_shares);
+ free((char *)*old_shares);
+ *old_shares = 0;
if(buf)
free(buf);
return 0;
@@ -933,7 +935,8 @@ position 0 for share mode file %s (%s)\n", fname, strerror(errno)));
DEBUG(0,("ERROR: get_share_modes: failed to re-write share \
mode file %s (%s)\n", fname, strerror(errno)));
if(*old_shares)
- free((char *)old_shares);
+ free((char *)*old_shares);
+ *old_shares = 0;
if(buf)
free(buf);
return 0;
@@ -944,7 +947,8 @@ mode file %s (%s)\n", fname, strerror(errno)));
DEBUG(0,("ERROR: get_share_modes: failed to ftruncate share \
mode file %s to size %d (%s)\n", fname, newsize, strerror(errno)));
if(*old_shares)
- free((char *)old_shares);
+ free((char *)*old_shares);
+ *old_shares = 0;
if(buf)
free(buf);
return 0;