diff options
author | Jeremy Allison <jra@samba.org> | 1997-10-06 19:50:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-10-06 19:50:51 +0000 |
commit | db4c2cb50e11d252ff3ba0e0973767e909dd33bd (patch) | |
tree | b4598ccd1a746ce3e94e3f049d42b86f22b001ba | |
parent | b93509846d6291771787af457500eec8984ee6bd (diff) | |
download | samba-db4c2cb50e11d252ff3ba0e0973767e909dd33bd.tar.gz samba-db4c2cb50e11d252ff3ba0e0973767e909dd33bd.tar.xz samba-db4c2cb50e11d252ff3ba0e0973767e909dd33bd.zip |
Finally ! Found & fixed crash bug with logging message when deleting
invalid share mode entries. Thanks to berg@wienrg.aut.alcatel.at (Dietmar Berg)
for the stack backtrace.
Jeremy (jallison@whistle.com)
-rw-r--r-- | source/locking/locking.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index f29c1a6105a..6e321d0626e 100644 --- a/source/locking/locking.c +++ b/source/locking/locking.c @@ -241,6 +241,7 @@ bucket %d\n", file_scanner_p->locking_version, dev, inode, hash_entry)); { /* Delete this share mode entry */ share_mode_entry *delete_entry_p = entry_scanner_p; + int share_mode = entry_scanner_p->share_mode; if(entry_prev_p == entry_scanner_p) { @@ -271,7 +272,7 @@ for dev = %d, ino = %d, hashbucket %d\n", file_scanner_p->num_share_mode_entries DEBUG(0,("get_share_modes (FAST_SHARE_MODES): process %d no longer exists and \ it left a share mode entry with mode 0x%X for file dev = %d, ino = %d in hash \ bucket %d (number of entries now = %d)\n", - pid, entry_scanner_p->share_mode, dev, inode, hash_entry, + pid, share_mode, dev, inode, hash_entry, file_scanner_p->num_share_mode_entries)); smb_shm_free(smb_shm_addr2offset(delete_entry_p)); |